From c7ea23ddb6559030d0be98bff090bf919b0c4265 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 09:29:55 -0600 Subject: gocui panic() loads nocui correctly Signed-off-by: Jeff Carr --- action.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'action.go') diff --git a/action.go b/action.go index a15fcb3..8b40983 100644 --- a/action.go +++ b/action.go @@ -160,7 +160,11 @@ func sendAction(n *Node, atype widget.ActionType) { // sends the action/event to each toolkit via a golang plugin channel func sendActionToPlugin(a *widget.Action) { for _, aplug := range allPlugins { - log.Log(PLUG, "send to toolkit =", aplug.name, "Action type=", a.ActionType, a.WidgetId) + log.Log(CHANGE, "send to toolkit =", aplug.name, "Action type=", a.ActionType, a.WidgetId) + if aplug.dead { + // log.Log(WARN, "skiping dead toolkit =", aplug.name, "Action type=", a.ActionType, a.WidgetId) + return + } if aplug.pluginChan == nil { log.Log(PLUG, "Action() retrieving the aplug.PluginChannel()", aplug.name) aplug.pluginChan = aplug.PluginChannel() -- cgit v1.2.3