diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 03:45:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 03:45:21 -0600 |
| commit | c682272f56094fc816c6b7fbee84351f5608c259 (patch) | |
| tree | cf737588d966aa847a1184d98ae8a890f3bb7ac9 /common.go | |
| parent | d4891c4d58380a81275d315151c2abc58ca1f291 (diff) | |
auto typist auto hides
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) } |
