summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-18 15:20:21 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commitfd24d2ee0d5339080ef3b4096e1c69b5d12f2be1 (patch)
tree4f767240fd6ca6c3dfc36e8e1f0534a2a164bf3c
parentf470cbc5e3dc3209cc0d42f90b3aa0d42a49c012 (diff)
actually delete the node from the tree
-rw-r--r--action.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/action.go b/action.go
index 10ecbaf..b097bfe 100644
--- a/action.go
+++ b/action.go
@@ -98,6 +98,7 @@ func (me *TreeInfo) doAction(a widget.Action) {
case widget.Delete:
me.Hide(n)
log.Info("tree: todo: remove child from parent")
+ n.DeleteNode()
// now remove the child from the parent
default:
log.Log(TREEWARN, "tree.Action() unknown action", a.ActionType, "on wId", a.WidgetId)