From 933a7e4df0e6a28ad06dfd60ab2928d5cdf916f9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Apr 2023 20:25:14 -0500 Subject: andlabs: callback is now safe through a go channel Signed-off-by: Jeff Carr --- toolkit/andlabs/checkbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit/andlabs/checkbox.go') diff --git a/toolkit/andlabs/checkbox.go b/toolkit/andlabs/checkbox.go index 69ba060..e4987e1 100644 --- a/toolkit/andlabs/checkbox.go +++ b/toolkit/andlabs/checkbox.go @@ -20,9 +20,9 @@ func (t *andlabsT) newCheckbox(a *toolkit.Action) *andlabsT { newt.uiControl = newt.uiCheckbox newt.uiCheckbox.OnToggled(func(spin *ui.Checkbox) { - newt.tw.B = newt.checked() + newt.b = newt.checked() log(debugChange, "val =", newt.tw.B) - newt.commonChange(newt.tw, a.WidgetId) + newt.doUserEvent() }) return &newt -- cgit v1.2.3