1
0
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:
palerdot 2023-04-26 15:11:47 +05:30
parent a6d8478679
commit 10468c912a
2 changed files with 3 additions and 4 deletions

View File

@ -374,7 +374,6 @@ export default class ElectronAppWrapper {
ipcMain.on('hide-splash', () => {
splash.destroy();
this.win_.show();
});
this.createWindow();

View File

@ -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();