From 61a63fec579f88766c6be0d392bb4eaed3b8564a Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 12 May 2024 17:14:30 -0400 Subject: button widget --- gui/widget/tree.go | 1 - 1 file changed, 1 deletion(-) (limited to 'gui/widget/tree.go') diff --git a/gui/widget/tree.go b/gui/widget/tree.go index 9e4af13..ff4d139 100644 --- a/gui/widget/tree.go +++ b/gui/widget/tree.go @@ -54,7 +54,6 @@ func flatten[T any](root Node[T], depth int) []string { make([]rune, depth), '─')) nodes := []string{indent + root.Label} - root.expanded = true // TODO: remove me if root.expanded { for _, c := range root.Children { nodes = append(nodes, flatten(c, depth+1)...) -- cgit v1.2.3