mirror of https://github.com/laurent22/joplin.git
Desktop: Resolves #2031: Prevent window from being shown on startup when it should be hidden in tray
parent
cc51ba4f90
commit
67d2c454ee
|
@ -56,6 +56,9 @@ class ElectronAppWrapper {
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
},
|
},
|
||||||
|
// We start with a hidden window, which is then made visible depending on the showTrayIcon setting
|
||||||
|
// https://github.com/laurent22/joplin/issues/2031
|
||||||
|
show: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Linux icon workaround for bug https://github.com/electron-userland/electron-builder/issues/2098
|
// Linux icon workaround for bug https://github.com/electron-userland/electron-builder/issues/2098
|
||||||
|
|
|
@ -1252,7 +1252,9 @@ class Application extends BaseApplication {
|
||||||
}, 1000 * 60 * 60);
|
}, 1000 * 60 * 60);
|
||||||
|
|
||||||
if (Setting.value('startMinimized') && Setting.value('showTrayIcon')) {
|
if (Setting.value('startMinimized') && Setting.value('showTrayIcon')) {
|
||||||
bridge().window().hide();
|
// Keep it hidden
|
||||||
|
} else {
|
||||||
|
bridge().window().show();
|
||||||
}
|
}
|
||||||
|
|
||||||
ResourceService.runInBackground();
|
ResourceService.runInBackground();
|
||||||
|
|
Loading…
Reference in New Issue