summaryrefslogtreecommitdiff
path: root/action.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 15:17:51 -0600
committerJeff Carr <[email protected]>2024-01-21 15:17:51 -0600
commita4a2ccd80592b4c20605e3f22f8c6ca73a7eac77 (patch)
tree5ce0aca7791995a97eccbf733ee4e0104bccb07a /action.go
parent1fdf786a72fd4af0c1acca45b250b5f66ef3e31b (diff)
silence output
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'action.go')
-rw-r--r--action.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/action.go b/action.go
index 533b32e..cc5a975 100644
--- a/action.go
+++ b/action.go
@@ -74,11 +74,17 @@ func sendAction(n *Node, atype widget.ActionType) {
// set if the widget is visable based on the parent
// this has nothing to do with show() and hide()
if n.ParentVisable() {
- log.Log(NOW, "Parent is visable n =", n.id, n.WidgetType, n.GetProgName())
+ log.Log(INFO, "Parent is visable n =", n.id, n.WidgetType, n.GetProgName())
+ if n.visable != true {
+ log.Log(INFO, "switching visable=true", n.id, n.WidgetType, n.GetProgName())
+ }
n.visable = true
} else {
- log.Log(NOW, "Parent is not visable n =", n.id, n.WidgetType, n.GetProgName())
- log.Log(NOW, "not sending action to toolkits")
+ log.Log(INFO, "Parent is not visable n =", n.id, n.WidgetType, n.GetProgName())
+ log.Log(INFO, "not sending action to toolkits")
+ if n.visable != false {
+ log.Log(INFO, "switching visable=false", n.id, n.WidgetType, n.GetProgName())
+ }
n.visable = false
return
}