mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 启动内核后清理推送消息
This commit is contained in:
parent
519054e085
commit
5c6effb83e
3 changed files with 7 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -177,6 +177,11 @@ const (
|
|||
PushProgressCodeEnd = 2 // 关闭进度
|
||||
)
|
||||
|
||||
func PushClearAllMsg() {
|
||||
ClearPushProgress(100)
|
||||
PushClearMsg("")
|
||||
}
|
||||
|
||||
func ClearPushProgress(total int) {
|
||||
PushProgress(PushProgressCodeEnd, total, total, "")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue