summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/dropdown.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-27 12:55:11 -0500
committerJeff Carr <[email protected]>2023-04-27 12:55:11 -0500
commit6f441738061b0528e86183402474ddb1cdf3c77a (patch)
treeaf5b38556b1dd9dd3fd17e517608669b26d55a05 /toolkit/andlabs/dropdown.go
parent253dcb012f6d4fc861e6fc9a66fd2c7260ead442 (diff)
andlabs: more cleanupsv0.8.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/dropdown.go')
-rw-r--r--toolkit/andlabs/dropdown.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/toolkit/andlabs/dropdown.go b/toolkit/andlabs/dropdown.go
index bf66e41..d98526a 100644
--- a/toolkit/andlabs/dropdown.go
+++ b/toolkit/andlabs/dropdown.go
@@ -22,10 +22,11 @@ func (p *node) newDropdown(n *node) {
cb.OnSelected(func(spin *ui.Combobox) {
i := spin.Selected()
if (newt.val == nil) {
- log(debugChange, "make map didn't work")
- newt.text = "error"
+ log(logError, "make map didn't work")
+ n.S = "map did not work. ui.Combobox error"
+ } else {
+ n.S = newt.val[i]
}
- n.S = newt.val[i]
n.doUserEvent()
})