summaryrefslogtreecommitdiff
path: root/andlabs/checkbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-11 17:19:47 -0600
committerJeff Carr <[email protected]>2024-01-11 17:19:47 -0600
commitc4582b0b30e3020a92baf299572d8617872d45e5 (patch)
treec678b4f165bf4db0d9975df4b360925e8e9930ca /andlabs/checkbox.go
parent4bf330767195a00de7fc0538228bcf0305143434 (diff)
type value any
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'andlabs/checkbox.go')
-rw-r--r--andlabs/checkbox.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/andlabs/checkbox.go b/andlabs/checkbox.go
index a5ea3bc..49f9045 100644
--- a/andlabs/checkbox.go
+++ b/andlabs/checkbox.go
@@ -8,11 +8,11 @@ import (
func (p *node) newCheckbox(n *node) {
newt := new(guiWidget)
- newt.uiCheckbox = ui.NewCheckbox(n.Text)
+ newt.uiCheckbox = ui.NewCheckbox(n.label)
newt.uiControl = newt.uiCheckbox
newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) {
- n.B = newt.checked()
+ n.value = newt.checked()
n.doUserEvent()
})