mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
bada8daa01
commit
cb79c4aed6
1 changed files with 7 additions and 6 deletions
|
|
@ -978,12 +978,6 @@ func DuplicateDoc(tree *parse.Tree) {
|
|||
|
||||
previousPath := tree.Path
|
||||
resetTree(tree, "Duplicated", false)
|
||||
createTreeTx(tree)
|
||||
box := Conf.Box(tree.Box)
|
||||
if nil != box {
|
||||
box.addSort(previousPath, tree.ID)
|
||||
}
|
||||
FlushTxQueue()
|
||||
|
||||
// 复制为副本时移除数据库绑定状态 https://github.com/siyuan-note/siyuan/issues/12294
|
||||
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
|
|
@ -996,6 +990,13 @@ func DuplicateDoc(tree *parse.Tree) {
|
|||
n.RemoveIALAttrsByPrefix(av.NodeAttrViewStaticText)
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
||||
createTreeTx(tree)
|
||||
box := Conf.Box(tree.Box)
|
||||
if nil != box {
|
||||
box.addSort(previousPath, tree.ID)
|
||||
}
|
||||
FlushTxQueue()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue