🎨 Improve cloud sync

This commit is contained in:
Liang Ding 2022-07-06 19:24:24 +08:00
parent 072a97af90
commit 0d466ea96a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 13 additions and 7 deletions

View file

@ -72,7 +72,7 @@ func SyncData(boot, exit, byHand bool) {
}
if util.IsMutexLocked(&syncLock) {
util.LogWarnf("sync has been locked")
util.LogWarnf("a cloud sync operation still processing")
planSyncAfter(30 * time.Second)
return
}
@ -1190,8 +1190,9 @@ func RemoveCloudSyncDir(name string) (err error) {
}
if Conf.Sync.CloudName == name {
Conf.Sync.CloudName = ""
Conf.Sync.CloudName = "main"
Conf.Save()
util.PushMsg(Conf.Language(155), 5000)
}
return
}