aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Andrzej Ressel <jereksel@gmail.com>2020-01-30 00:06:14 +0100
committerLibravatar Andrzej Ressel <jereksel@gmail.com>2020-01-30 00:06:14 +0100
commitd93b4461a193169a1b35ea3c097544b0f32a2d8e (patch)
tree2504a77be6abe73a06541df6896b143a35d59afe /src/index.js
parentStart in tray (diff)
downloadferdium-app-d93b4461a193169a1b35ea3c097544b0f32a2d8e.tar.gz
ferdium-app-d93b4461a193169a1b35ea3c097544b0f32a2d8e.tar.zst
ferdium-app-d93b4461a193169a1b35ea3c097544b0f32a2d8e.zip
Update
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
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