actually delete the node from the tree

This commit is contained in:
Jeff Carr 2025-02-18 15:20:21 -06:00
parent f470cbc5e3
commit fd24d2ee0d
1 changed files with 1 additions and 0 deletions

View File

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