🎨 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

@ -924,6 +924,7 @@
"151": "Do not include symbols \\ / : * ? " ' < > |",
"152": "Uploaded files %d, chunks %d, sent bytes %s",
"153": "Downloaded files %d, chunks %d, received bytes %s",
"154": "The cloud can only support backup up to 12 snapshots"
"154": "The cloud can only support backup up to 12 snapshots",
"155": "Cloud sync directory has been reset to [main]"
}
}

View file

@ -924,6 +924,7 @@
"151": "No incluir símbolos \\ / : * ? " ' < > |",
"152": "Archivos cargados %d, fragmentos %d, bytes enviados %s",
"153": "Archivos descargados %d, fragmentos %d, bytes recibidos %s",
"154": "La nube solo admite copias de seguridad de hasta 12 instantáneas"
"154": "La nube solo admite copias de seguridad de hasta 12 instantáneas",
"155": "El directorio de sincronización de la nube se ha restablecido a [main]"
}
}

View file

@ -924,6 +924,7 @@
"151": "Ne pas inclure les symboles \\ / : * ? " ' < > |",
"152": "Fichiers téléchargés %d, morceaux %d, octets envoyés %s",
"153": "Fichiers chargés %d, morceaux %d, octets reçus %s",
"154": "Le cloud ne peut prendre en charge que la sauvegarde jusqu'à 12 instantanés"
"154": "Le cloud ne peut prendre en charge que la sauvegarde jusqu'à 12 instantanés",
"155": "Le répertoire de synchronisation du cloud a été réinitialisé sur [main]"
}
}

View file

@ -923,6 +923,7 @@
"151": "請勿包含符號 \\ / : * ? " ' < > |",
"152": "上傳文件數 %d 上傳分塊數 %d 發送字節數 %s",
"153": "下載文件數 %d 下載分塊數 %d 接收字節數 %s",
"154": "雲端最多只能支持備份 12 個快照"
"154": "雲端最多只能支持備份 12 個快照",
"155": "雲端同步目錄已經重置為 [main]"
}
}

View file

@ -925,6 +925,7 @@
"151": "请勿包含符号 \\ / : * ? " ' < > |",
"152": "上传文件数 %d 上传分块数 %d 发送字节数 %s",
"153": "下载文件数 %d 下载分块数 %d 接收字节数 %s",
"154": "云端最多只能支持备份 12 个快照"
"154": "云端最多只能支持备份 12 个快照",
"155": "云端同步目录已经重置为 [main]"
}
}

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
}