Fix TreeView CollapseAll

This commit is contained in:
ViRb3 2023-05-10 17:55:14 +01:00 committed by GitHub
parent 51ba3688bc
commit c2e0525ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ func (n *TreeNode) ExpandAll() *TreeNode {
// CollapseAll collapses this node and all descendent nodes.
func (n *TreeNode) CollapseAll() *TreeNode {
n.Walk(func(node, parent *TreeNode) bool {
n.expanded = false
node.expanded = false
return true
})
return n