mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Improve duplicate doc
This commit is contained in:
parent
5d4ef9890f
commit
9098b3f874
1 changed files with 5 additions and 0 deletions
|
|
@ -967,8 +967,13 @@ func DuplicateDoc(tree *parse.Tree) {
|
|||
msgId := util.PushMsg(Conf.Language(116), 30000)
|
||||
defer util.PushClearMsg(msgId)
|
||||
|
||||
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/11959
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue