Merge pull request #848 from ViRb3/patch-1

Fix TreeView CollapseAll
pull/610/merge
rivo 1 year ago committed by GitHub
commit 822bd067b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save