summaryrefslogtreecommitdiff
path: root/andlabs/checkbox.go
diff options
context:
space:
mode:
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()
})