From 24475c41733173d479c23eab2b134c016c507f73 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 01:00:26 -0600 Subject: [PATCH] more on toolkit init() --- action.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.go b/action.go index 2aca8d5..484ba94 100644 --- a/action.go +++ b/action.go @@ -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()")