More silliness

This commit is contained in:
Sasha Koshka
2023-01-17 16:46:07 -05:00
parent 5d64788b68
commit 06e0396695
2 changed files with 16 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ type Checkbox struct {
// NewCheckbox creates a new cbeckbox with the specified label text.
func NewCheckbox (text string, checked bool) (element *Checkbox) {
element = &Checkbox { enabled: true }
element = &Checkbox { enabled: true, checked: checked }
element.Core, element.core = core.NewCore(element)
element.drawer.SetFace(theme.FontFaceRegular())
element.SetText(text)