🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-29 23:17:51 +08:00
parent bdec014828
commit bbfd732689
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 64 additions and 4 deletions

View file

@ -1561,7 +1561,7 @@ func removeDoc(box *Box, p string, luteEngine *lute.Lute) {
return
}
generateAvHistory(tree, historyDir)
generateAvHistoryInTree(tree, historyDir)
copyDocAssetsToDataAssets(box.ID, p)
removeIDs := treenode.RootChildIDs(tree.ID)