From 81e047fbe884220b36f6ef7cd9520cd4360a569d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 06:00:18 -0600 Subject: reminders about errors --- action.go | 7 +++++++ init.go | 1 + 2 files changed, 8 insertions(+) diff --git a/action.go b/action.go index 8b40983..44692a1 100644 --- a/action.go +++ b/action.go @@ -103,6 +103,7 @@ func getNewAction(n *Node, atype widget.ActionType) *widget.Action { return &a } +// 2025/02/09 this will continue to suck until I switch it to protocol buffers // 2024/01/11 finally moving to type any. simplify to just 'value' // 2023/05/09 pretty clean // 2023/04/06 Queue() is also being used and channels are being used. @@ -111,6 +112,9 @@ func sendAction(n *Node, atype widget.ActionType) { log.Error(errors.New("Sending Action on n = nil")) return } + if atype == widget.Disable { + log.Log(WARN, "START got DISABLE action ", n.id, n.WidgetType, n.GetProgName()) + } n.mu.Lock() defer n.mu.Unlock() // log.Log(PLUG, "SENDING ACTION STRINGS n.Strings", n.strings, n.id, n.WidgetType, n.GetProgName()) @@ -151,6 +155,9 @@ func sendAction(n *Node, atype widget.ActionType) { return } } + if atype == widget.Disable { + log.Log(WARN, "END got DISABLE action ", n.id, n.WidgetType, n.GetProgName()) + } // make a new action and populate the current node state a := getNewAction(n, atype) diff --git a/init.go b/init.go index 72b577d..7c8a35a 100644 --- a/init.go +++ b/init.go @@ -225,6 +225,7 @@ func (n *Node) gotUserEvent(a widget.Action) { if !n.IsEnabled() { log.Log(WARN, "ignoring plugin event for a disabled widget", n.id, n.progname, a.Value) + log.Log(WARN, "this can't be fixed until switching go.wit.com/gui to protobuf") return } -- cgit v1.2.3