more on toolkit init()

This commit is contained in:
Jeff Carr 2025-03-03 01:00:26 -06:00
parent 7a1124c6f5
commit 24475c4173
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ func (me *TreeInfo) doAction(a widget.Action) {
if a.ActionType == widget.ToolkitInit {
log.Log(TREEWARN, "tree.doAction() trapped ToolkitInit finally!")
a.WidgetType = widget.Root
AddNode(&a)
n := AddNode(&a)
me.Add(n)
log.Log(TREEWARN, "tree.doAction() init() me.treeRoot")
if me.ToolkitInit != nil {
log.Log(TREEWARN, "tree.doAction() doing ToolkitInit()")