hide/destroy window

This commit is contained in:
Jeff Carr 2025-02-18 14:59:15 -06:00
parent 29f8f406ef
commit f470cbc5e3
1 changed files with 5 additions and 0 deletions

View File

@ -90,10 +90,15 @@ func (me *TreeInfo) doAction(a widget.Action) {
case widget.Hide:
n.State.Hidden = true
me.Hide(n)
log.Info("tree: doing hide here on", a.WidgetId, n.WidgetType)
case widget.Enable:
me.Enable(n)
case widget.Disable:
me.Disable(n)
case widget.Delete:
me.Hide(n)
log.Info("tree: todo: remove child from parent")
// now remove the child from the parent
default:
log.Log(TREEWARN, "tree.Action() unknown action", a.ActionType, "on wId", a.WidgetId)
// me.NodeAction(n, a.ActionType)