diff --git a/app/main.ts b/app/main.ts index b1ccb651e9b..aa05d75848c 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(); }