mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
♻️ Refactor push reload filetree, tag and protyle
This commit is contained in:
parent
ebb74238c9
commit
246efd5938
7 changed files with 19 additions and 7 deletions
|
|
@ -104,6 +104,14 @@ func refreshDocInfo0(tree *parse.Tree, size uint64) {
|
|||
task.AppendAsyncTaskWithDelay(task.ReloadProtyle, 500*time.Millisecond, util.PushReloadDocInfo, docInfo)
|
||||
}
|
||||
|
||||
func ReloadFiletree() {
|
||||
task.AppendAsyncTaskWithDelay(task.ReloadFiletree, 200*time.Millisecond, util.PushReloadFiletree)
|
||||
}
|
||||
|
||||
func ReloadTag() {
|
||||
task.AppendAsyncTaskWithDelay(task.ReloadTag, 200*time.Millisecond, util.PushReloadTag)
|
||||
}
|
||||
|
||||
func ReloadProtyle(rootID string) {
|
||||
// 刷新关联的引用
|
||||
defTree, _ := LoadTreeByBlockID(rootID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue