summaryrefslogtreecommitdiff
path: root/addNode.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 03:43:55 -0600
committerJeff Carr <[email protected]>2024-02-09 03:43:55 -0600
commitbd24754c82f77d06dba31c32c3acdd0ed1adebe9 (patch)
tree774a6a939c268c18a186ae110a181e644ef0d87d /addNode.go
parentb029617e7dd7988a7557c176017fe261ab7cc000 (diff)
more node State repairs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addNode.go')
-rw-r--r--addNode.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/addNode.go b/addNode.go
index 5a17a25..43e4d20 100644
--- a/addNode.go
+++ b/addNode.go
@@ -13,7 +13,13 @@ func (me *TreeInfo) AddNode(a *widget.Action) *Node {
n.ParentId = a.ParentId
n.State = a.State
- n.Strings = make(map[string]int)
+ // n.Strings = make(map[string]int)
+ // slices.Reverse(lines)
+ // dropdown strings
+ n.ddStrings = make([]string, 0)
+ for _, s := range a.State.Strings {
+ n.ddStrings = append(n.ddStrings, s)
+ }
if a.WidgetType == widget.Root {
log.Log(TREE, "AddNode() Root")