mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 11:16:09 +01:00
♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393
This commit is contained in:
parent
4f04ae98dd
commit
50adf9751b
6 changed files with 16 additions and 22 deletions
|
|
@ -19,6 +19,7 @@ package model
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
|
@ -104,13 +105,10 @@ func BatchUpdateBazaarPackages(frontend string) {
|
|||
}
|
||||
|
||||
util.ReloadUI()
|
||||
|
||||
go func() {
|
||||
util.WaitForUILoaded()
|
||||
time.Sleep(500)
|
||||
util.PushMsg(fmt.Sprintf(Conf.language(237), total), 5000)
|
||||
task.AppendTaskWithDelay(task.PushMsg, 1*time.Second, util.PushMsg, fmt.Sprintf(Conf.language(237), total), 5000)
|
||||
}()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue