From 6789b8c8a2b2197e73a74ddd1afb27f89e873743 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Jul 2019 08:53:38 -0400 Subject: [PATCH] also show window if not visible --- src/electron/window.main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron/window.main.ts b/src/electron/window.main.ts index 36f26f82d2..6c7faae4a3 100644 --- a/src/electron/window.main.ts +++ b/src/electron/window.main.ts @@ -36,7 +36,7 @@ export class WindowMain { app.on('second-instance', (event, commandLine, workingDirectory) => { // Someone tried to run a second instance, we should focus our window. if (this.win != null) { - if (this.win.isMinimized()) { + if (this.win.isMinimized() || !this.win.isVisible()) { this.win.show(); } this.win.focus();