From 7e4274094d663d5e70b5eb5f3fbfcb8a7aeb2f82 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 14 May 2026 12:02:20 +0800 Subject: [PATCH] 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. --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 238bbc8d8..f0bb770a8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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) => {