summaryrefslogtreecommitdiff
path: root/andlabs/dropdown.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-15 16:11:40 -0600
committerJeff Carr <[email protected]>2024-01-15 16:11:40 -0600
commit29c39d7a1cbc1f071fa819e589fa6ed93fcb7d80 (patch)
tree4081338b6e1ed2e1cc26f3153f1eee3070873558 /andlabs/dropdown.go
parent708ea661988fd0e4886fc63f3f6dffe25b6fa276 (diff)
Destroy window and node from binary treev0.12.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'andlabs/dropdown.go')
-rw-r--r--andlabs/dropdown.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/andlabs/dropdown.go b/andlabs/dropdown.go
index a189bf7..0795264 100644
--- a/andlabs/dropdown.go
+++ b/andlabs/dropdown.go
@@ -1,8 +1,8 @@
package main
import (
- "github.com/andlabs/ui"
- _ "github.com/andlabs/ui/winmanifest"
+ "go.wit.com/dev/andlabs/ui"
+ _ "go.wit.com/dev/andlabs/ui/winmanifest"
"go.wit.com/log"
"go.wit.com/gui/widget"
@@ -35,6 +35,7 @@ func (p *node) newDropdown(n *node) {
n.tk = newt
p.place(n)
+ if n.strings == nil {return}
// add the initial dropdown entries
for i, s := range n.strings {
log.Warn("add dropdown: add entries on create", n.progname, i, s)
@@ -45,7 +46,6 @@ func (p *node) newDropdown(n *node) {
n.setDropdownName(cur)
}
-
func (n *node) SetDropdownInt(i int) {
if ! n.ready() { return }
n.tk.uiCombobox.SetSelected(i)