From a6ec16065ac79ac658b17a050d108e143d2b9bad Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 5 Feb 2023 17:58:25 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=87=8D=E5=BB=BA=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E4=BB=A5=E5=90=8E=E5=88=B7=E6=96=B0=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/box.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index 7cee0fdf6..9a11eed7c 100644 --- a/kernel/model/box.go +++ b/kernel/model/box.go @@ -510,7 +510,7 @@ func FullReindex() { } func fullReindex() { - msgId := util.PushMsg(Conf.Language(35), 7*1000) + util.PushMsg(Conf.Language(35), 7*1000) WaitForWritingFiles() if err := sql.InitDatabase(true); nil != err { @@ -528,10 +528,7 @@ func fullReindex() { treenode.SaveBlockTree(true) LoadFlashcards() debug.FreeOSMemory() - go func() { - time.Sleep(3 * time.Second) - util.PushClearMsg(msgId) - }() + util.ReloadUI() } func ChangeBoxSort(boxIDs []string) {