From f470cbc5e3dc3209cc0d42f90b3aa0d42a49c012 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 18 Feb 2025 14:59:15 -0600 Subject: hide/destroy window --- action.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.go b/action.go index 32a11ab..10ecbaf 100644 --- a/action.go +++ b/action.go @@ -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) -- cgit v1.2.3