mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
🎨 移动折叠标题后自动展开 https://github.com/siyuan-note/siyuan/issues/6673
This commit is contained in:
parent
14a8b1f8a4
commit
3ea5b24ea6
1 changed files with 5 additions and 3 deletions
|
|
@ -40,9 +40,11 @@ import (
|
|||
)
|
||||
|
||||
func IsFoldHeading(transactions *[]*Transaction) bool {
|
||||
if 1 == len(*transactions) && 1 == len((*transactions)[0].DoOperations) {
|
||||
if op := (*transactions)[0].DoOperations[0]; "foldHeading" == op.Action {
|
||||
return true
|
||||
for _, tx := range *transactions {
|
||||
for _, op := range tx.DoOperations {
|
||||
if "foldHeading" == op.Action {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue