🎨 启动内核后清理推送消息

This commit is contained in:
Liang Ding 2022-12-23 22:42:54 +08:00
parent 519054e085
commit 5c6effb83e
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
3 changed files with 7 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func main() {
go model.AutoSync() go model.AutoSync()
go model.AutoStat() go model.AutoStat()
util.SetBooted() util.SetBooted()
util.ClearPushProgress(100) util.PushClearAllMsg()
go model.AutoRefreshCheck() go model.AutoRefreshCheck()
go model.AutoFlushTx() go model.AutoFlushTx()
go sql.AutoFlushTreeQueue() go sql.AutoFlushTreeQueue()

View File

@ -59,7 +59,7 @@ func StartKernel(container, appDir, workspaceDir, nativeLibDir, privateDataDir,
go model.AutoSync() go model.AutoSync()
go model.AutoStat() go model.AutoStat()
util.SetBooted() util.SetBooted()
util.ClearPushProgress(100) util.PushClearAllMsg()
go model.AutoRefreshCheck() go model.AutoRefreshCheck()
go model.AutoFlushTx() go model.AutoFlushTx()
go sql.AutoFlushTreeQueue() go sql.AutoFlushTreeQueue()

View File

@ -177,6 +177,11 @@ const (
PushProgressCodeEnd = 2 // 关闭进度 PushProgressCodeEnd = 2 // 关闭进度
) )
func PushClearAllMsg() {
ClearPushProgress(100)
PushClearMsg("")
}
func ClearPushProgress(total int) { func ClearPushProgress(total int) {
PushProgress(PushProgressCodeEnd, total, total, "") PushProgress(PushProgressCodeEnd, total, total, "")
} }