summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 03:45:21 -0600
committerJeff Carr <[email protected]>2024-01-19 03:45:21 -0600
commitc682272f56094fc816c6b7fbee84351f5608c259 (patch)
treecf737588d966aa847a1184d98ae8a890f3bb7ac9 /common.go
parentd4891c4d58380a81275d315151c2abc58ca1f291 (diff)
auto typist auto hides
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.go b/common.go
index 56ad5d5..d24b7fb 100644
--- a/common.go
+++ b/common.go
@@ -96,6 +96,12 @@ func (n *Node) Bool() bool {
return false
}
+ switch n.WidgetType {
+ case widget.Checkbox:
+ return n.checked
+ default:
+ }
+
return widget.GetBool(n.value)
}