From 83dca60257ad35fd6e02a47e8e43569c8d0c74da Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Sat, 22 Jun 2024 15:37:52 -0400 Subject: [PATCH] Fix checkboxes not initializing to desired value --- checkbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkbox.go b/checkbox.go index 868dfde..87db418 100644 --- a/checkbox.go +++ b/checkbox.go @@ -19,7 +19,7 @@ func NewCheckbox (value bool) *Checkbox { Box: tomo.NewBox(), } box.SetRole(tomo.R("objects", "Checkbox", "")) - box.SetValue(false) + box.SetValue(value) box.OnMouseUp(box.handleMouseUp) box.OnKeyUp(box.handleKeyUp)