1
0
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:
palerdot 2023-04-25 15:06:48 +05:30
parent 7f82501a19
commit a6d8478679

View File

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