🎨 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()
|
||||
boxDir := filepath.Join(util.DataDir, tree.Box)
|
||||
parentDir := path.Dir(tree.Path)
|
||||
parentPath := parentDir + ".sy"
|
||||
|
||||
if parentDir == boxDir || parentDir == "/" {
|
||||
return
|
||||
}
|
||||
|
||||
parentPath := parentDir + ".sy"
|
||||
parentTree, err := filesys.LoadTree(tree.Box, parentPath, luteEngine)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue