diff options
| author | Jeff Carr <[email protected]> | 2024-01-11 19:10:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-11 19:10:24 -0600 |
| commit | 3b258d0ce0e20ffedf8804409a16abbe84f1d383 (patch) | |
| tree | 0273746324f274f5c95e96a32b06911f4dd40e05 /nocui/event.go | |
| parent | c4582b0b30e3020a92baf299572d8617872d45e5 (diff) | |
var value any
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nocui/event.go')
| -rw-r--r-- | nocui/event.go | 8 |
1 files changed, 4 insertions, 4 deletions
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() |
