fix: WebDAV not automatic backup on app reopened #752

This commit is contained in:
kangfenmao 2025-01-17 10:14:17 +08:00
parent 4f44afeec4
commit 8b5dd427d0
2 changed files with 7 additions and 5 deletions

View File

@ -140,7 +140,7 @@ const TitleContainer = styled.div`
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
padding-left: ${isMac ? '20px' : '15px'}; padding-left: ${isMac ? '20px' : '10px'};
padding-right: 10px; padding-right: 10px;
position: absolute; position: absolute;
top: 0; top: 0;

View File

@ -9,10 +9,12 @@ function initKeyv() {
} }
function initAutoSync() { function initAutoSync() {
setTimeout(() => {
const { webdavAutoSync } = store.getState().settings const { webdavAutoSync } = store.getState().settings
if (webdavAutoSync) { if (webdavAutoSync) {
startAutoSync() startAutoSync()
} }
}, 2000)
} }
initKeyv() initKeyv()