aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index b297d66d8..af3172fb1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -114,7 +114,9 @@ if (!gotTheLock) {
114 app.on('second-instance', (event, argv) => { 114 app.on('second-instance', (event, argv) => {
115 // Someone tried to run a second instance, we should focus our window. 115 // Someone tried to run a second instance, we should focus our window.
116 if (mainWindow) { 116 if (mainWindow) {
117 mainWindow.show(); 117 if (!mainWindow.isVisible()) {
118 mainWindow.show();
119 }
118 if (mainWindow.isMinimized()) { 120 if (mainWindow.isMinimized()) {
119 mainWindow.restore(); 121 mainWindow.restore();
120 } 122 }