[Splash > QuickStart] Tweak timing for new updater, add config flag to enable as well as an env

pull/2/head
Oj 2 years ago
parent 1f1736bcc3
commit a5b7624b5c

@ -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() {

Loading…
Cancel
Save