Skip to content

Commit

Permalink
Do not call initMainWindow if windowManager is not ready (#1714)
Browse files Browse the repository at this point in the history
Signed-off-by: Jari Kolehmainen <[email protected]>
  • Loading branch information
jakolehm committed Dec 9, 2020
1 parent 25deade commit f5e331e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ app.on("activate", (event, hasVisibleWindows) => {
logger.info("APP:ACTIVATE", { hasVisibleWindows });

if (!hasVisibleWindows) {
windowManager.initMainWindow();
windowManager?.initMainWindow(false);
}
});

Expand Down

0 comments on commit f5e331e

Please sign in to comment.