From 607ef5a8a90387d9091b474f21516562f31fcd90 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:58:13 +0800 Subject: [PATCH] fix(home): update last check timestamp on manual update check (#6605) The onCheckUpdate handler never persisted the timestamp to localStorage or dispatched it to component state, so clicking "Last Check Update" would report the result but leave the displayed time stale. --- src/components/home/system-info-card.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/home/system-info-card.tsx b/src/components/home/system-info-card.tsx index bca595b0b..9a4e170fa 100644 --- a/src/components/home/system-info-card.tsx +++ b/src/components/home/system-info-card.tsx @@ -157,6 +157,12 @@ export const SystemInfoCard = () => { const onCheckUpdate = useLockFn(async () => { try { const info = await triggerCheckUpdate() + const now = Date.now() + localStorage.setItem('last_check_update', now.toString()) + dispatchSystemState({ + type: 'set-last-check-update', + payload: new Date(now).toLocaleString(), + }) if (!info?.available) { showNotice.success( 'settings.components.verge.advanced.notifications.latestVersion',