From 3b258d0ce0e20ffedf8804409a16abbe84f1d383 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Jan 2024 19:10:24 -0600 Subject: var value any Signed-off-by: Jeff Carr --- nocui/event.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nocui/event.go') diff --git a/nocui/event.go b/nocui/event.go index 4de0e32..97f2aed 100644 --- a/nocui/event.go +++ b/nocui/event.go @@ -24,7 +24,7 @@ func (n *node) doWidgetClick() { // n.placeWidgets() // n.toggleTree() case widget.Checkbox: - if (n.B) { + if widget.GetBool(n.value) { // n.setCheckbox(false) } else { // n.setCheckbox(true) @@ -36,10 +36,10 @@ func (n *node) doWidgetClick() { // n.showWidgets() case widget.Box: // n.showWidgetPlacement(logNow, "drawTree()") - if (n.B) { - log.Log(NOW, "BOX IS HORIZONTAL", n.Name) + if widget.GetBool(n.value) { + log.Log(NOW, "BOX IS HORIZONTAL", n.progname) } else { - log.Log(NOW, "BOX IS VERTICAL", n.Name) + log.Log(NOW, "BOX IS VERTICAL", n.progname) } case widget.Button: n.doUserEvent() -- cgit v1.2.3