mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
fix(desktop): hide splash screen for tray start
This commit is contained in:
parent
a6d8478679
commit
10468c912a
@ -374,7 +374,6 @@ export default class ElectronAppWrapper {
|
||||
|
||||
ipcMain.on('hide-splash', () => {
|
||||
splash.destroy();
|
||||
this.win_.show();
|
||||
});
|
||||
|
||||
this.createWindow();
|
||||
|
@ -490,12 +490,12 @@ class Application extends BaseApplication {
|
||||
void AlarmService.garbageCollect();
|
||||
}, 1000 * 60 * 60);
|
||||
|
||||
ipcRenderer.send('hide-splash');
|
||||
|
||||
if (Setting.value('startMinimized') && Setting.value('showTrayIcon')) {
|
||||
// Keep it hidden
|
||||
} else {
|
||||
// bridge().window().show();
|
||||
// splash screen will be hidden and main window will be shown on 'hide-splash' event
|
||||
ipcRenderer.send('hide-splash');
|
||||
bridge().window().show();
|
||||
}
|
||||
|
||||
void ShareService.instance().maintenance();
|
||||
|
Loading…
Reference in New Issue
Block a user