summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-02 12:05:15 -0600
committerJeff Carr <[email protected]>2025-03-02 12:05:15 -0600
commit3fb1d3ef70d6a82a8658866d9a14e13adbcf3104 (patch)
tree2241b0655c8bfa7b2d5905f226dcf005c0d81978
parentc502e7c5b60f9f90bd416d4d31c7d70def2c6c18 (diff)
fix enable/disable buttons
-rw-r--r--action.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/action.go b/action.go
index 9ac316c..86ce14e 100644
--- a/action.go
+++ b/action.go
@@ -97,8 +97,10 @@ func (me *TreeInfo) doAction(a widget.Action) {
me.Hide(n)
log.Info("tree: doing hide here on", a.WidgetId, n.WidgetType)
case widget.Enable:
+ n.State.Enable = true
me.Enable(n)
case widget.Disable:
+ n.State.Enable = false
me.Disable(n)
case widget.Delete:
if me.Hide == nil {