🎨 Automatic refresh of document tree information https://github.com/siyuan-note/siyuan/issues/11043

This commit is contained in:
Daniel 2024-09-28 17:38:50 +08:00
parent 3fde9bb690
commit d35386d79d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 63 additions and 9 deletions

View file

@ -179,7 +179,7 @@ func index(boxID string) {
updated := util.TimeFromID(tree.Root.ID)
tree.Root.SetIALAttr("updated", updated)
docIAL["updated"] = updated
if writeErr := filesys.WriteTree(tree); nil != writeErr {
if _, writeErr := filesys.WriteTree(tree); nil != writeErr {
logging.LogErrorf("write tree [%s] failed: %s", tree.Path, writeErr)
}
}