the strings show up

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2025-01-31 10:08:07 -06:00
parent 4aef276b64
commit 8a4afa760d
1 changed files with 3 additions and 0 deletions

View File

@ -182,14 +182,17 @@ func dropdownUnclicked(mouseX, mouseH int) {
return
}
log.Log(GOCUI, "dropdownUnclicked()", d.node.Strings(), "end. now try to enable me.dropdownV")
dtext := strings.Join(d.node.Strings(), "\n")
tk := me.dropdownV
if dtoggle {
log.Log(GOCUI, "dropdownUnclicked() set visible=false")
tk.Hide()
dtoggle = false
tk.SetText("goodbye")
} else {
log.Log(GOCUI, "dropdownUnclicked() set visible=true")
tk.Show()
tk.SetText(dtext)
dtoggle = true
}
}