mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 08:44:20 +01:00
🎨 Improve cloud sync
This commit is contained in:
parent
072a97af90
commit
0d466ea96a
6 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue