summaryrefslogtreecommitdiff
path: root/action.go
diff options
context:
space:
mode:
Diffstat (limited to 'action.go')
-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 {