summaryrefslogtreecommitdiff
path: root/toolkit/gocui/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 15:00:37 -0500
committerJeff Carr <[email protected]>2023-04-06 15:00:37 -0500
commit70f8797122741ef61951d3400317173a1d9974da (patch)
treeb30dee396b571cd66655fd1f7f68c9f5eaf7a8a1 /toolkit/gocui/plugin.go
parent789beceb913cc6132931c0e245cad78d3ae7d9b8 (diff)
gogui: checkboxes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/plugin.go')
-rw-r--r--toolkit/gocui/plugin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolkit/gocui/plugin.go b/toolkit/gocui/plugin.go
index 396042b..eb3f2af 100644
--- a/toolkit/gocui/plugin.go
+++ b/toolkit/gocui/plugin.go
@@ -69,6 +69,7 @@ func (w *cuiWidget) Set(val any) {
switch v := val.(type) {
case bool:
w.b = val.(bool)
+ w.setCheckbox(val.(bool))
case string:
w.SetText(val.(string))
case int: