summaryrefslogtreecommitdiff
path: root/addText.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 03:44:21 -0600
committerJeff Carr <[email protected]>2024-02-09 03:44:21 -0600
commit142be47d3a3290d369e424560346cc6dbfa11cc7 (patch)
tree76b17536fbf2d29fbd7567446c276e557160fb31 /addText.go
parent695f116eecec0cc810c0046fc1369ba36ca313ed (diff)
more node state fixesv0.20.3v0.20.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'addText.go')
-rw-r--r--addText.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/addText.go b/addText.go
index c6bcdbb..4759092 100644
--- a/addText.go
+++ b/addText.go
@@ -6,9 +6,6 @@ import (
"go.wit.com/widget"
)
-func compareStrings(n *tree.Node, ss []string) {
-}
-
func addText(n *tree.Node, s string) {
var tk *guiWidget
tk = n.TK.(*guiWidget)
@@ -21,19 +18,7 @@ func addText(n *tree.Node, s string) {
switch n.WidgetType {
case widget.Dropdown:
- for i, s := range n.State.Strings {
- log.Log(ANDLABS, "n.State.Strings =", i, s)
- _, ok := n.Strings[s]
- // If the key exists
- if ok {
- log.Log(ANDLABS, "string is already in the dropdown", i, s)
- } else {
- log.Log(ANDLABS, "adding new string to dropdown", i, s)
- addDropdownName(n, s)
- // TODO: make numbers
- n.Strings[s] = 21
- }
- }
+ addDropdownName(n, s)
case widget.Combobox:
addComboboxName(n, s)
default: