From 5c6effb83e73f91ba443b7bea595cbbb8d133e12 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 23 Dec 2022 22:42:54 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=90=AF=E5=8A=A8=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=90=8E=E6=B8=85=E7=90=86=E6=8E=A8=E9=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/main.go | 2 +- kernel/mobile/kernel.go | 2 +- kernel/util/websocket.go | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/main.go b/kernel/main.go index 2dd9c9c3b..69e3d6c9b 100644 --- a/kernel/main.go +++ b/kernel/main.go @@ -45,7 +45,7 @@ func main() { go model.AutoSync() go model.AutoStat() util.SetBooted() - util.ClearPushProgress(100) + util.PushClearAllMsg() go model.AutoRefreshCheck() go model.AutoFlushTx() go sql.AutoFlushTreeQueue() diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.go index 221b79383..58c2101ef 100644 --- a/kernel/mobile/kernel.go +++ b/kernel/mobile/kernel.go @@ -59,7 +59,7 @@ func StartKernel(container, appDir, workspaceDir, nativeLibDir, privateDataDir, go model.AutoSync() go model.AutoStat() util.SetBooted() - util.ClearPushProgress(100) + util.PushClearAllMsg() go model.AutoRefreshCheck() go model.AutoFlushTx() go sql.AutoFlushTreeQueue() diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index d833fb0ce..76c25fb65 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -177,6 +177,11 @@ const ( PushProgressCodeEnd = 2 // 关闭进度 ) +func PushClearAllMsg() { + ClearPushProgress(100) + PushClearMsg("") +} + func ClearPushProgress(total int) { PushProgress(PushProgressCodeEnd, total, total, "") }