summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-01 11:58:56 -0600
committerJeff Carr <[email protected]>2024-02-01 11:58:56 -0600
commitdf59065b222849827bb3bfd87e0d57ed1f051dac (patch)
treec6f6da164e5dee5515038d5d02baadde1cceae56
parenta84f361287c8c245365838df03c3f6c0eef1794f (diff)
gocui checkboxv0.19.0
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index dc43d26..3fabc6c 100644
--- a/main.go
+++ b/main.go
@@ -139,7 +139,7 @@ func (n *Node) gotUserEvent(a widget.Action) {
switch n.WidgetType {
case widget.Checkbox:
// n.checked = a.State.Checked // TODO: do this and/or time to switch to protobuf
- n.checked = widget.GetBool(a.Value)
+ n.checked = a.State.Checked
default:
}