♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393

This commit is contained in:
Daniel 2024-09-05 16:41:50 +08:00
parent 50adf9751b
commit ffe737f55c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 7 additions and 9 deletions

View file

@ -257,8 +257,8 @@ func resetDuplicateBlocksOnFileSys() {
if needRefreshUI {
util.ReloadUI()
go func() {
time.Sleep(time.Second * 3)
util.PushMsg(Conf.Language(190), 5000)
util.WaitForUILoaded()
task.AppendTaskWithDelay(task.PushMsg, 3*time.Second, util.PushMsg, Conf.Language(190), 5000)
}()
}
}