mirror of
https://github.com/rivo/tview.git
synced 2025-04-28 13:48:53 +08:00
Fix TreeView CollapseAll
This commit is contained in:
parent
51ba3688bc
commit
c2e0525ec0
@ -187,7 +187,7 @@ func (n *TreeNode) ExpandAll() *TreeNode {
|
|||||||
// CollapseAll collapses this node and all descendent nodes.
|
// CollapseAll collapses this node and all descendent nodes.
|
||||||
func (n *TreeNode) CollapseAll() *TreeNode {
|
func (n *TreeNode) CollapseAll() *TreeNode {
|
||||||
n.Walk(func(node, parent *TreeNode) bool {
|
n.Walk(func(node, parent *TreeNode) bool {
|
||||||
n.expanded = false
|
node.expanded = false
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
return n
|
return n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user