🎨 Subdocuments created by the database are not displayed in the doc tree https://github.com/siyuan-note/siyuan/issues/9091

This commit is contained in:
Daniel 2023-09-06 10:04:33 +08:00
parent 764ef40ba1
commit b8801b220b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 12 additions and 2 deletions

View file

@ -380,6 +380,11 @@ func isSkipFile(filename string) bool {
func moveTree(tree *parse.Tree) {
treenode.SetBlockTreePath(tree)
if hidden := tree.Root.IALAttr("custom-hidden"); "true" == hidden {
tree.Root.RemoveIALAttr("custom-hidden")
filesys.WriteTree(tree)
}
sql.UpsertTreeQueue(tree)
box := Conf.Box(tree.Box)