mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-01 05:52:11 +01:00
fix waiting for opening a normal window
This commit is contained in:
parent
eb8719da54
commit
d9bc17d321
@ -112,7 +112,6 @@ function startNormalWindow(config: Config): Promise<Electron.BrowserWindow> {
|
||||
if (IS_DEBUG) {
|
||||
win.webContents.openDevTools({mode: 'detach'});
|
||||
}
|
||||
resolve(win);
|
||||
});
|
||||
|
||||
const normalIcon = trayIcon(config.icon_color);
|
||||
@ -123,6 +122,8 @@ function startNormalWindow(config: Config): Promise<Electron.BrowserWindow> {
|
||||
tray.setHighlightMode('never');
|
||||
app.dock.setIcon(APP_ICON);
|
||||
}
|
||||
|
||||
resolve(win);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user