summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
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)
}