mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Automatic refresh of document tree information https://github.com/siyuan-note/siyuan/issues/11043
This commit is contained in:
parent
3fde9bb690
commit
d35386d79d
6 changed files with 63 additions and 9 deletions
|
|
@ -239,7 +239,7 @@ func resetDuplicateBlocksOnFileSys() {
|
|||
|
||||
if needOverwrite {
|
||||
logging.LogWarnf("exist more than one node with the same id in tree [%s], reset it", box.ID+p)
|
||||
if writeErr := filesys.WriteTree(tree); nil != writeErr {
|
||||
if _, writeErr := filesys.WriteTree(tree); nil != writeErr {
|
||||
logging.LogErrorf("write tree [%s] failed: %s", p, writeErr)
|
||||
}
|
||||
}
|
||||
|
|
@ -266,7 +266,7 @@ func recreateTree(tree *parse.Tree, absPath string) {
|
|||
treenode.RemoveBlockTreesByRootID(tree.ID)
|
||||
|
||||
resetTree(tree, "", true)
|
||||
if err := filesys.WriteTree(tree); err != nil {
|
||||
if _, err := filesys.WriteTree(tree); err != nil {
|
||||
logging.LogWarnf("write tree [%s] failed: %s", tree.Path, err)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue