diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 6cc547d33..7bc0be0ea 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -142,6 +142,8 @@ const createWindow = () => { | |||
142 | const mainWindowState = windowStateKeeper({ | 142 | const mainWindowState = windowStateKeeper({ |
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, | ||
146 | fullScreen: false, | ||
145 | }); | 147 | }); |
146 | 148 | ||
147 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; | 149 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; |
@@ -168,6 +170,7 @@ const createWindow = () => { | |||
168 | height: mainWindowState.height, | 170 | height: mainWindowState.height, |
169 | minWidth: 600, | 171 | minWidth: 600, |
170 | minHeight: 500, | 172 | minHeight: 500, |
173 | show: false, | ||
171 | titleBarStyle: isMac ? 'hidden' : '', | 174 | titleBarStyle: isMac ? 'hidden' : '', |
172 | frame: isLinux, | 175 | frame: isLinux, |
173 | backgroundColor, | 176 | backgroundColor, |
@@ -300,6 +303,10 @@ const createWindow = () => { | |||
300 | shell.openExternal(url); | 303 | shell.openExternal(url); |
301 | } | 304 | } |
302 | }); | 305 | }); |
306 | |||
307 | if (!(settings.get('enableSystemTray') && settings.get('startMinimized'))) { | ||
308 | mainWindow.show(); | ||
309 | } | ||
303 | }; | 310 | }; |
304 | 311 | ||
305 | // Allow passing command line parameters/switches to electron | 312 | // Allow passing command line parameters/switches to electron |