diff --git a/src/main/tray.main.ts b/src/main/tray.main.ts index e03bc61779..d8c1ed3e6d 100644 --- a/src/main/tray.main.ts +++ b/src/main/tray.main.ts @@ -76,7 +76,7 @@ export class TrayMain { this.tray = null; } - if (this.windowMain.win != null && !this.windowMain.win.isVisible()) { + if (showWindow && this.windowMain.win != null && !this.windowMain.win.isVisible()) { this.windowMain.win.show(); } }