Skip to content

Commit 28c1360

Browse files
committed
Fix: activate handler creates window directly in development mode
ensureInitialBackendWindowOpen() has an early return when isDevelopment is true, which is correct for the initial bootstrap path but prevents window creation when the macOS dock icon is clicked after all windows are closed. Handle development mode explicitly in the activate handler by calling createWindow() directly.
1 parent a2f6ad2 commit 28c1360

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/desktop/src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,10 @@ app
20222022
revealWindow(existingWindow);
20232023
return;
20242024
}
2025+
if (isDevelopment) {
2026+
mainWindow = createWindow();
2027+
return;
2028+
}
20252029
ensureInitialBackendWindowOpen();
20262030
});
20272031
})

0 commit comments

Comments
 (0)