1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-02-02 06:52:13 +01:00

fix waiting for opening a normal window

This commit is contained in:
rhysd 2017-04-16 22:07:23 +09:00
parent eb8719da54
commit d9bc17d321

View File

@ -112,7 +112,6 @@ function startNormalWindow(config: Config): Promise<Electron.BrowserWindow> {
if (IS_DEBUG) { if (IS_DEBUG) {
win.webContents.openDevTools({mode: 'detach'}); win.webContents.openDevTools({mode: 'detach'});
} }
resolve(win);
}); });
const normalIcon = trayIcon(config.icon_color); const normalIcon = trayIcon(config.icon_color);
@ -123,6 +122,8 @@ function startNormalWindow(config: Config): Promise<Electron.BrowserWindow> {
tray.setHighlightMode('never'); tray.setHighlightMode('never');
app.dock.setIcon(APP_ICON); app.dock.setIcon(APP_ICON);
} }
resolve(win);
}); });
} }