[Splash > QuickStart] Tweak timing for new updater, add config flag to enable as well as an env
This commit is contained in:
parent
1f1736bcc3
commit
a5b7624b5c
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue