♻️ Refactor push reload filetree, tag and protyle

This commit is contained in:
Daniel 2025-04-14 22:03:31 +08:00
parent ebb74238c9
commit 246efd5938
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 19 additions and 7 deletions

View file

@ -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)