From c682272f56094fc816c6b7fbee84351f5608c259 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 19 Jan 2024 03:45:21 -0600 Subject: auto typist auto hides Signed-off-by: Jeff Carr --- common.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common.go') 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) } -- cgit v1.2.3