From 69962e836f7f997d89524808568fd16b5be5a099 Mon Sep 17 00:00:00 2001 From: fullex <106392080+0xfullex@users.noreply.github.com> Date: Thu, 17 Apr 2025 21:57:24 +0800 Subject: [PATCH] fix: Nutstore auto-sync when app starts (#5005) feat: integrate Nutstore auto-sync functionality in initialization process --- src/renderer/src/init.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/src/init.ts b/src/renderer/src/init.ts index 91c786807d..9ddaee9a89 100644 --- a/src/renderer/src/init.ts +++ b/src/renderer/src/init.ts @@ -3,6 +3,7 @@ import './utils/analytics' import KeyvStorage from '@kangfenmao/keyv-storage' import { startAutoSync } from './services/BackupService' +import { startNutstoreAutoSync } from './services/NutstoreService' import store from './store' function initSpinner() { @@ -20,9 +21,13 @@ function initKeyv() { function initAutoSync() { setTimeout(() => { const { webdavAutoSync } = store.getState().settings + const { nutstoreAutoSync } = store.getState().nutstore if (webdavAutoSync) { startAutoSync() } + if (nutstoreAutoSync) { + startNutstoreAutoSync() + } }, 2000) }