From 47b15946de10a75cda026a7317a90d4857b453c8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Jan 2024 22:02:12 -0600 Subject: work on hiding widgets When widgets are hidden, their state works exactly the same as normal, but updates are not sent to the toolkits Signed-off-by: Jeff Carr --- checkbox.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'checkbox.go') diff --git a/checkbox.go b/checkbox.go index 9075bbd..ed28185 100644 --- a/checkbox.go +++ b/checkbox.go @@ -11,9 +11,7 @@ func (n *Node) NewCheckbox(name string) *Node { newNode.value = name newNode.progname = name - if ! newNode.hidden { - a := newAction(newNode, widget.Add) - sendAction(a) - } + // inform the toolkits + sendAction(newNode, widget.Add) return newNode } -- cgit v1.2.3