fix: #2208 use global settings button dose not work

This commit is contained in:
Yidadaa
2023-07-01 18:16:06 +08:00
parent 9057712c8f
commit ee55f8790e
2 changed files with 8 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ export const useUpdateStore = create<UpdateStore>()(
set(() => ({ version }));
const shouldCheck =
Date.now() - get().lastUpdate > 24 * 60 * ONE_MINUTE;
const shouldCheck = Date.now() - get().lastUpdate > 2 * 60 * ONE_MINUTE;
if (!force && !shouldCheck) return;
set(() => ({