From c2e0525ec0ad445f477c91f265c85c2cba557efc Mon Sep 17 00:00:00 2001 From: ViRb3 Date: Wed, 10 May 2023 17:55:14 +0100 Subject: [PATCH] Fix TreeView CollapseAll --- treeview.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treeview.go b/treeview.go index f1f5f00..ad491e3 100644 --- a/treeview.go +++ b/treeview.go @@ -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