mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-28 16:09:17 +00:00
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:
+4
-2
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user