diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js index 4c61c5c8e..69aae3dde 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -91,7 +91,7 @@ if (!gotTheLock) { | |||
91 | app.on('second-instance', (event, argv) => { | 91 | app.on('second-instance', (event, argv) => { |
92 | // Someone tried to run a second instance, we should focus our window. | 92 | // Someone tried to run a second instance, we should focus our window. |
93 | if (mainWindow) { | 93 | if (mainWindow) { |
94 | //mainWindow.show(); | 94 | mainWindow.show(); |
95 | if (mainWindow.isMinimized()) { | 95 | if (mainWindow.isMinimized()) { |
96 | mainWindow.restore(); | 96 | mainWindow.restore(); |
97 | } | 97 | } |
@@ -143,7 +143,7 @@ const createWindow = () => { | |||
143 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, | 143 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, |
144 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, | 144 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, |
145 | maximize: false, | 145 | maximize: false, |
146 | fullScreen: false | 146 | fullScreen: false, |
147 | }); | 147 | }); |
148 | 148 | ||
149 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; | 149 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; |
@@ -305,7 +305,6 @@ const createWindow = () => { | |||
305 | if (!(settings.get('enableSystemTray') && settings.get('startMinimized'))) { | 305 | if (!(settings.get('enableSystemTray') && settings.get('startMinimized'))) { |
306 | mainWindow.show(); | 306 | mainWindow.show(); |
307 | } | 307 | } |
308 | |||
309 | }; | 308 | }; |
310 | 309 | ||
311 | // Allow passing command line parameters/switches to electron | 310 | // Allow passing command line parameters/switches to electron |