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:
t8y2 2026-05-14 12:02:20 +08:00
parent b3bcb82586
commit 7e4274094d
1 changed files with 4 additions and 2 deletions

View File

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