mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 10:14:21 +01:00
🎨 Improve move tx
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
84dddba736
commit
c22a78e565
1 changed files with 5 additions and 0 deletions
|
|
@ -446,6 +446,11 @@ func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {
|
|||
srcEmptyList = srcNode.Parent
|
||||
}
|
||||
|
||||
if nil != operation.Context && "true" == operation.Context["removeFold"] {
|
||||
srcNode.RemoveIALAttr("heading-fold")
|
||||
srcNode.RemoveIALAttr("fold")
|
||||
}
|
||||
|
||||
targetPreviousID := operation.PreviousID
|
||||
targetParentID := operation.ParentID
|
||||
if "" != targetPreviousID {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue