You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-09-16 08:56:40 +02:00
fix(desktop): hide splash screen for tray start
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user