fix(updates): delay first update check by 10s after startup
Prevents the update checker from blocking UI rendering on startup, especially for users with slow GitHub connectivity.
This commit is contained in:
parent
b3bcb82586
commit
7e4274094d
|
|
@ -530,8 +530,10 @@ onMounted(async () => {
|
|||
}
|
||||
initApp();
|
||||
setupFileDrop().catch(() => {});
|
||||
checkUpdates({ silent: true });
|
||||
updateCheckTimer = setInterval(() => checkUpdates({ silent: true }), UPDATE_CHECK_INTERVAL_MS);
|
||||
setTimeout(() => {
|
||||
checkUpdates({ silent: true });
|
||||
updateCheckTimer = setInterval(() => checkUpdates({ silent: true }), UPDATE_CHECK_INTERVAL_MS);
|
||||
}, 10_000);
|
||||
api
|
||||
.getAppVersion()
|
||||
.then((v) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue