summaryrefslogtreecommitdiff
path: root/nocui/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'nocui/event.go')
-rw-r--r--nocui/event.go8
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()