From c3eb22372e8d05f478ea6b09fb9993683bbbabf3 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 6 Jul 2022 00:21:52 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=95=B0=E6=8D=AE=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E6=94=AF=E6=8C=81=E4=BA=91=E7=AB=AF=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/5336?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/repository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 9cd1a6ce2..9c19d3da9 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -207,11 +207,11 @@ func DownloadCloudSnapshot(tag, id string) (err error) { return } + defer util.PushClearProgress() downloadFileCount, downloadChunkCount, downloadBytes, err := repo.DownloadTagIndex(tag, id, cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBarAndProgress}) if nil != err { return } - util.PushClearProgress() msg := fmt.Sprintf(Conf.Language(153), downloadFileCount, downloadChunkCount, byteCountSI(downloadBytes)) util.PushMsg(msg, 5000) util.PushStatusBar(msg) @@ -234,11 +234,11 @@ func UploadCloudSnapshot(tag, id string) (err error) { return } + defer util.PushClearProgress() uploadFileCount, uploadChunkCount, uploadBytes, err := repo.UploadTagIndex(tag, id, cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBarAndProgress}) if nil != err { return } - util.PushClearProgress() msg := fmt.Sprintf(Conf.Language(152), uploadFileCount, uploadChunkCount, byteCountSI(uploadBytes)) util.PushMsg(msg, 5000) util.PushStatusBar(msg)