summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}