summaryrefslogtreecommitdiff
path: root/init.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 /init.go
parentb029617e7dd7988a7557c176017fe261ab7cc000 (diff)
more node State repairs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'init.go')
-rw-r--r--init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.go b/init.go
index 453d162..9a9101b 100644
--- a/init.go
+++ b/init.go
@@ -40,8 +40,10 @@ func (me *TreeInfo) newAction(a widget.Action) {
case widget.AddText:
switch n.WidgetType {
case widget.Dropdown:
+ n.ddStrings = append(n.ddStrings, a.State.NewString)
me.AddText(n, a.State.NewString)
case widget.Combobox:
+ n.ddStrings = append(n.ddStrings, a.State.NewString)
me.AddText(n, a.State.NewString)
default:
log.Log(TREEWARN, "AddText() not supported on widget", n.WidgetType, n.String())