From a4a2ccd80592b4c20605e3f22f8c6ca73a7eac77 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 21 Jan 2024 15:17:51 -0600 Subject: silence output Signed-off-by: Jeff Carr --- action.go | 12 +++++++++--- 1 file 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 } -- cgit v1.2.3