mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
register hide-splash event before creating main window
This commit is contained in:
parent
7f82501a19
commit
a6d8478679
@ -371,13 +371,14 @@ export default class ElectronAppWrapper {
|
||||
if (alreadyRunning) return;
|
||||
|
||||
const splash = await this.createSplashScreen();
|
||||
this.createWindow();
|
||||
|
||||
ipcMain.on('hide-splash', () => {
|
||||
splash.destroy();
|
||||
this.win_.show();
|
||||
});
|
||||
|
||||
this.createWindow();
|
||||
|
||||
this.electronApp_.on('before-quit', () => {
|
||||
this.willQuitApp_ = true;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user