From a5b7624b5c7001632e6e885dd7469c5575451901 Mon Sep 17 00:00:00 2001 From: Oj Date: Thu, 9 Dec 2021 21:42:27 +0000 Subject: [PATCH] [Splash > QuickStart] Tweak timing for new updater, add config flag to enable as well as an env --- src/splash/splashScreen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/splash/splashScreen.js b/src/splash/splashScreen.js index 7a73322..7506fbb 100644 --- a/src/splash/splashScreen.js +++ b/src/splash/splashScreen.js @@ -329,13 +329,13 @@ function initSplash(startMinimized = false) { _ipcMain.default.on('UPDATED_QUOTES', (_event, quotes) => cacheLatestQuotes(quotes)); - if (process.env.OPENASAR_QUICKSTART) setTimeout(() => { + if (process.env.OPENASAR_QUICKSTART || oaConfig.quickstart) setTimeout(() => { destroySplash(); if (newUpdater != null) { updateUntilCurrent(); } else { - // moduleUpdater.installPendingUpdates(); + moduleUpdater.installPendingUpdates(); moduleUpdater.setInBackground(); } @@ -344,7 +344,7 @@ function initSplash(startMinimized = false) { setTimeout(() => { events.emit(APP_SHOULD_SHOW); }, 100); - }, 50); + }, newUpdater != null ? 500 : 50); } function destroySplash() {