diff --git a/src/renderer/src/init.ts b/src/renderer/src/init.ts index 91c78680..9ddaee9a 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) }