summaryrefslogtreecommitdiff
path: root/action.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 09:29:55 -0600
committerJeff Carr <[email protected]>2024-02-09 09:29:55 -0600
commitc7ea23ddb6559030d0be98bff090bf919b0c4265 (patch)
tree8c2cbd57709c683914e0ffd639e86e07950529a6 /action.go
parent8317fa28e2da1d22d7248874ebc794189faf23b5 (diff)
gocui panic() loads nocui correctlyv0.20.3v0.20.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'action.go')
-rw-r--r--action.go6
1 files changed, 5 insertions, 1 deletions
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()