mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393
This commit is contained in:
parent
09eec52a02
commit
653a765b17
4 changed files with 54 additions and 26 deletions
|
|
@ -790,10 +790,7 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
|
||||
WaitForWritingFiles()
|
||||
if 0 < len(ids) {
|
||||
go func() {
|
||||
time.Sleep(time.Millisecond * 500)
|
||||
util.ReloadUI()
|
||||
}()
|
||||
task.AppendAsyncTaskWithDelay(task.ReloadUI, 500*time.Millisecond, util.ReloadUI)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue