mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🐛 Doc tree drag function is abnormal https://github.com/siyuan-note/siyuan/issues/15972
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -38,10 +38,18 @@ import (
|
||||
)
|
||||
|
||||
func refreshDocInfo(tree *parse.Tree) {
|
||||
if nil == tree {
|
||||
return
|
||||
}
|
||||
|
||||
refreshDocInfoWithSize(tree, filesys.TreeSize(tree))
|
||||
}
|
||||
|
||||
func refreshDocInfoWithSize(tree *parse.Tree, size uint64) {
|
||||
if nil == tree {
|
||||
return
|
||||
}
|
||||
|
||||
refreshDocInfo0(tree, size)
|
||||
refreshParentDocInfo(tree)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user