mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01: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:
parent
2e9cde72d6
commit
bd700efd6f
1 changed files with 8 additions and 0 deletions
|
|
@ -38,10 +38,18 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func refreshDocInfo(tree *parse.Tree) {
|
func refreshDocInfo(tree *parse.Tree) {
|
||||||
|
if nil == tree {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
refreshDocInfoWithSize(tree, filesys.TreeSize(tree))
|
refreshDocInfoWithSize(tree, filesys.TreeSize(tree))
|
||||||
}
|
}
|
||||||
|
|
||||||
func refreshDocInfoWithSize(tree *parse.Tree, size uint64) {
|
func refreshDocInfoWithSize(tree *parse.Tree, size uint64) {
|
||||||
|
if nil == tree {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
refreshDocInfo0(tree, size)
|
refreshDocInfo0(tree, size)
|
||||||
refreshParentDocInfo(tree)
|
refreshParentDocInfo(tree)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue