Do not show window if launched as hidden
This commit is contained in:
parent
86937a1734
commit
69edaeabfb
1 changed files with 4 additions and 1 deletions
|
@ -699,7 +699,10 @@ async function createWindow() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!startInTray) {
|
||||
const shouldShowWindow =
|
||||
!app.getLoginItemSettings().wasOpenedAsHidden && !startInTray;
|
||||
|
||||
if (shouldShowWindow) {
|
||||
getLogger().info('showing main window');
|
||||
mainWindow.show();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue