From bd24754c82f77d06dba31c32c3acdd0ed1adebe9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 03:43:55 -0600 Subject: more node State repairs Signed-off-by: Jeff Carr --- addNode.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'addNode.go') 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") -- cgit v1.2.3