🔨 Refactor: change config sync to manual

This commit is contained in:
萌萌哒赫萝
2023-05-06 21:50:15 +08:00
parent 5c15ea1544
commit 28be3881e1
8 changed files with 309 additions and 136 deletions
-2
View File
@@ -48,7 +48,6 @@ import clipboardPoll from '../utils/clipboardPoll'
import path from 'path'
import { CLIPBOARD_IMAGE_FOLDER } from '~/universal/utils/static'
import fs from 'fs-extra'
import { syncInterval } from '../utils/syncSettings'
const isDevelopment = process.env.NODE_ENV !== 'production'
const handleStartUpFiles = (argv: string[], cwd: string) => {
@@ -202,7 +201,6 @@ class LifeCycle {
}
const clipboardDir = path.join(picgo.baseDir, CLIPBOARD_IMAGE_FOLDER)
fs.ensureDir(clipboardDir)
syncInterval()
}
app.whenReady().then(readyFunction)
}