mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 Automatic refresh of document tree information https://github.com/siyuan-note/siyuan/issues/11043
This commit is contained in:
parent
63ae805106
commit
8edd56b371
1 changed files with 1 additions and 2 deletions
|
|
@ -47,12 +47,11 @@ func refreshParentDocInfo(tree *parse.Tree) {
|
||||||
luteEngine := lute.New()
|
luteEngine := lute.New()
|
||||||
boxDir := filepath.Join(util.DataDir, tree.Box)
|
boxDir := filepath.Join(util.DataDir, tree.Box)
|
||||||
parentDir := path.Dir(tree.Path)
|
parentDir := path.Dir(tree.Path)
|
||||||
parentPath := parentDir + ".sy"
|
|
||||||
|
|
||||||
if parentDir == boxDir || parentDir == "/" {
|
if parentDir == boxDir || parentDir == "/" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parentPath := parentDir + ".sy"
|
||||||
parentTree, err := filesys.LoadTree(tree.Box, parentPath, luteEngine)
|
parentTree, err := filesys.LoadTree(tree.Box, parentPath, luteEngine)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue