Bladeren bron

:sparkles: 数据仓库支持云端备份 https://github.com/siyuan-note/siyuan/issues/5336

Liang Ding 3 jaren geleden
bovenliggende
commit
76a4915408
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      kernel/model/repository.go

+ 6 - 2
kernel/model/repository.go

@@ -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
 }