mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Resolves #2031: Prevent window from being shown on startup when it should be hidden in tray
This commit is contained in:
parent
cc51ba4f90
commit
67d2c454ee
@ -56,6 +56,9 @@ class ElectronAppWrapper {
|
||||
webPreferences: {
|
||||
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
|
||||
|
@ -1252,7 +1252,9 @@ class Application extends BaseApplication {
|
||||
}, 1000 * 60 * 60);
|
||||
|
||||
if (Setting.value('startMinimized') && Setting.value('showTrayIcon')) {
|
||||
bridge().window().hide();
|
||||
// Keep it hidden
|
||||
} else {
|
||||
bridge().window().show();
|
||||
}
|
||||
|
||||
ResourceService.runInBackground();
|
||||
|
Loading…
Reference in New Issue
Block a user