This commit is contained in:
Liang Ding 2022-07-03 22:02:21 +08:00
parent 5b1b38aabe
commit eb79fbd37d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
10 changed files with 59 additions and 0 deletions

View file

@ -491,6 +491,15 @@ func SetSyncEnable(b bool) (err error) {
return
}
func SetSyncUseDataRepo(b bool) (err error) {
syncLock.Lock()
defer syncLock.Unlock()
Conf.Sync.UseDataRepo = b
Conf.Save()
return
}
func SetSyncMode(mode int) (err error) {
syncLock.Lock()
defer syncLock.Unlock()