mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 Improve open/remove notebook
This commit is contained in:
parent
c18b79d374
commit
8a0762f27b
1 changed files with 6 additions and 1 deletions
|
|
@ -132,7 +132,12 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
}
|
||||
targetNode.InsertAfter(heading)
|
||||
} else {
|
||||
return
|
||||
// 移到最前
|
||||
for i := len(headingChildren) - 1; i >= 0; i-- {
|
||||
child := headingChildren[i]
|
||||
tree.Root.PrependChild(child)
|
||||
}
|
||||
tree.Root.PrependChild(heading)
|
||||
}
|
||||
|
||||
if err = tx.writeTree(tree); nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue