This commit is contained in:
Liang Ding 2022-11-21 23:47:39 +08:00
parent 6f577f87ab
commit 4849b20620
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -49,9 +49,11 @@ func IsFoldHeading(transactions *[]*Transaction) bool {
}
func IsUnfoldHeading(transactions *[]*Transaction) bool {
if 1 == len(*transactions) && 1 == len((*transactions)[0].DoOperations) {
if op := (*transactions)[0].DoOperations[0]; "unfoldHeading" == op.Action {
return true
for _, tx := range *transactions {
for _, op := range tx.DoOperations {
if "unfoldHeading" == op.Action {
return true
}
}
}
return false