diff options
| author | Jeff Carr <[email protected]> | 2025-02-05 07:24:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-05 07:24:14 -0600 |
| commit | 12f3d5ac5cb4add74eb9a053ae1804c661654d09 (patch) | |
| tree | c70342cf9b59ef9d26493171a52a79df9d660eb1 /dropdown.go | |
| parent | a81e931b9ac830f7812d696e0ecc182fb3a00b7f (diff) | |
set the node.State.Label on SetText()
Diffstat (limited to 'dropdown.go')
| -rw-r--r-- | dropdown.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dropdown.go b/dropdown.go index 9832874..6c3a9ff 100644 --- a/dropdown.go +++ b/dropdown.go @@ -65,6 +65,9 @@ func addDropdownNew(wId int) *tree.Node { tk.labelN = "DropBox text" tk.node = n + if tk.node.Parent == nil { + tk.node.Parent = me.treeRoot + } // copy the data from the action message tk.node.State.Label = "DropBox" |
