summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
committerJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
commita6a3e1193fa7c77165f3ed2eb0031f319b4abdd0 (patch)
tree2c5a9fbf4dbc5f7bd5cb235542082da5eba342c6 /node.go
parent8ef3fc7a73a004385d36561c6c8acc4be7e3e24b (diff)
work around a toolkit panic()v0.12.11
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 <[email protected]> Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go2
1 files changed, 2 insertions, 0 deletions
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