diff --git a/src/renderer/src/components/MinApp/index.tsx b/src/renderer/src/components/MinApp/index.tsx index 84daba12..a59a7c34 100644 --- a/src/renderer/src/components/MinApp/index.tsx +++ b/src/renderer/src/components/MinApp/index.tsx @@ -140,7 +140,7 @@ const TitleContainer = styled.div` display: flex; flex-direction: row; align-items: center; - padding-left: ${isMac ? '20px' : '15px'}; + padding-left: ${isMac ? '20px' : '10px'}; padding-right: 10px; position: absolute; top: 0; diff --git a/src/renderer/src/init.ts b/src/renderer/src/init.ts index cec120c2..85bb1ea5 100644 --- a/src/renderer/src/init.ts +++ b/src/renderer/src/init.ts @@ -9,10 +9,12 @@ function initKeyv() { } function initAutoSync() { - const { webdavAutoSync } = store.getState().settings - if (webdavAutoSync) { - startAutoSync() - } + setTimeout(() => { + const { webdavAutoSync } = store.getState().settings + if (webdavAutoSync) { + startAutoSync() + } + }, 2000) } initKeyv()