From af694ad3c11414cf8da897174030d4bedae61fb9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 2 Feb 2023 23:08:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:art:=20=E9=87=8D=E5=BB=BA=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/box.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index da4f83d61..e33603737 100644 --- a/kernel/model/box.go +++ b/kernel/model/box.go @@ -500,7 +500,7 @@ func FullReindex() { } func fullReindex() { - util.PushMsg(Conf.Language(35), 7*1000) + msgId := util.PushMsg(Conf.Language(35), 7*1000) WaitForWritingFiles() if err := sql.InitDatabase(true); nil != err { @@ -518,6 +518,7 @@ func fullReindex() { treenode.SaveBlockTree(true) LoadFlashcards() runtime.GC() + util.PushClearMsg(msgId) go func() { time.Sleep(3 * time.Second) util.PushStatusBar(Conf.Language(108)) From ab9f2ba6fde57dd7457559021fd11ed91d64043e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 2 Feb 2023 23:11:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:art:=20=E9=87=8D=E5=BB=BA=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index e33603737..7ffd2ae3e 100644 --- a/kernel/model/box.go +++ b/kernel/model/box.go @@ -518,9 +518,9 @@ func fullReindex() { treenode.SaveBlockTree(true) LoadFlashcards() runtime.GC() - util.PushClearMsg(msgId) go func() { time.Sleep(3 * time.Second) + util.PushClearMsg(msgId) util.PushStatusBar(Conf.Language(108)) }() }