From eb60edc42cfb730eb33a3cce641f957f1686e218 Mon Sep 17 00:00:00 2001 From: Klaus Sinani Date: Fri, 28 Dec 2018 01:38:38 +0200 Subject: [PATCH] Improved toggling functionality of the main window --- src/win.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win.js b/src/win.js index fac8ece..484e771 100644 --- a/src/win.js +++ b/src/win.js @@ -63,7 +63,7 @@ class Win { appear() { const [win] = BrowserWindow.getAllWindows(); - if (!win.isVisible()) { + if (!win.isVisible() || !win.isFocused()) { win.show(); win.focus(); }