summaryrefslogtreecommitdiff
path: root/addNode.go
diff options
context:
space:
mode:
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")