mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -42,7 +42,7 @@ func getBootSync(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
if 1 == model.BootSyncSucc {
|
||||
if model.Conf.Sync.Enabled && 1 == model.BootSyncSucc {
|
||||
ret.Code = 1
|
||||
ret.Msg = model.Conf.Language(17)
|
||||
return
|
||||
|
||||
@@ -212,7 +212,9 @@ func DownloadCloudSnapshot(tag, id string) (err error) {
|
||||
return
|
||||
}
|
||||
util.PushClearProgress()
|
||||
util.PushMsg(fmt.Sprintf(Conf.Language(153), downloadFileCount, downloadChunkCount, byteCountSI(downloadBytes)), 5000)
|
||||
msg := fmt.Sprintf(Conf.Language(153), downloadFileCount, downloadChunkCount, byteCountSI(downloadBytes))
|
||||
util.PushMsg(msg, 5000)
|
||||
util.PushStatusBar(msg)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -237,7 +239,9 @@ func UploadCloudSnapshot(tag, id string) (err error) {
|
||||
return
|
||||
}
|
||||
util.PushClearProgress()
|
||||
util.PushMsg(fmt.Sprintf(Conf.Language(152), uploadFileCount, uploadChunkCount, byteCountSI(uploadBytes)), 5000)
|
||||
msg := fmt.Sprintf(Conf.Language(152), uploadFileCount, uploadChunkCount, byteCountSI(uploadBytes))
|
||||
util.PushMsg(msg, 5000)
|
||||
util.PushStatusBar(msg)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user