new toolkit tree functions

This commit is contained in:
Jeff Carr 2025-02-24 11:00:35 -06:00
parent 4046e33a63
commit c502e7c5b6
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,11 @@ func (me *TreeInfo) doAction(a widget.Action) {
case widget.Disable:
me.Disable(n)
case widget.Delete:
me.Hide(n)
if me.Hide == nil {
log.Info("toolkit doesn't know how to Hide() widgets")
} else {
me.Hide(n)
}
log.Info("tree: todo: remove child from parent")
n.DeleteNode()
// now remove the child from the parent