diff options
| author | Jeff Carr <[email protected]> | 2025-02-18 14:59:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-19 17:39:45 -0600 |
| commit | f470cbc5e3dc3209cc0d42f90b3aa0d42a49c012 (patch) | |
| tree | 9ae1fbe02b76a420f18a739fe5a09473f8a76572 | |
| parent | 29f8f406ef9823d5ce5b2f7a68d01ef454b0d47c (diff) | |
hide/destroy window
| -rw-r--r-- | action.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |
