fix enable/disable buttons

This commit is contained in:
Jeff Carr 2025-03-02 12:05:15 -06:00
parent c502e7c5b6
commit 3fb1d3ef70
1 changed files with 2 additions and 0 deletions

View File

@ -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 {