diff --git a/app/main.ts b/app/main.ts index b1ccb651e..aa05d7584 100644 --- a/app/main.ts +++ b/app/main.ts @@ -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(); }