Fix checkboxes not initializing to desired value
This commit is contained in:
parent
5b60717b8f
commit
83dca60257
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user