diff options
| author | Jeff Carr <[email protected]> | 2024-02-09 03:43:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-09 03:43:55 -0600 |
| commit | bd24754c82f77d06dba31c32c3acdd0ed1adebe9 (patch) | |
| tree | 774a6a939c268c18a186ae110a181e644ef0d87d /addNode.go | |
| parent | b029617e7dd7988a7557c176017fe261ab7cc000 (diff) | |
more node State repairs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addNode.go')
| -rw-r--r-- | addNode.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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") |
