From a6a3e1193fa7c77165f3ed2eb0031f319b4abdd0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Jan 2024 21:21:29 -0600 Subject: work around a toolkit panic() things should work when GUI is not really there Int() and Bool() helloworld works compiles and runs RawWindow shouldn't auto exit add StandardExit() Signed-off-by: Jeff Carr Signed-off-by: Jeff Carr --- node.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node.go') diff --git a/node.go b/node.go index 1fd8470..ae1cd55 100644 --- a/node.go +++ b/node.go @@ -21,6 +21,8 @@ func (n *Node) newNode(title string, t widget.WidgetType) *Node { newN.value = title newN.WidgetType = t + newN.strings = make(map[string]int) + // set these defaults newN.expand = true newN.pad = true -- cgit v1.2.3