new toolkit tree functions
This commit is contained in:
parent
4046e33a63
commit
c502e7c5b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue