From a2b2cbf14d6890eccd330eae8df721e3578b54c5 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sun, 30 Jan 2022 21:35:06 +0200 Subject: [PATCH] Small change in splash screen opening timing --- src/ts/Launcher.ts | 8 ++++++++ src/ts/launcher/State.ts | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index aa569dd..eb0498f 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -33,6 +33,14 @@ export default class Launcher public constructor(onMount) { + Windows.open('splash', { + title: 'Splash', + width: 300, + height: 400, + borderless: true, + exitProcessOnClose: false + }); + this.tray = new Tray(`/public/icons/256x256.png`); this.tray.update(); diff --git a/src/ts/launcher/State.ts b/src/ts/launcher/State.ts index 855bfd2..1ebb732 100644 --- a/src/ts/launcher/State.ts +++ b/src/ts/launcher/State.ts @@ -94,14 +94,6 @@ export default class State }); }; - Windows.open('splash', { - title: 'Splash', - width: 300, - height: 400, - borderless: true, - exitProcessOnClose: false - }); - this.update().then(async () => { // Close splash screen IPC.write('launcher-loaded');