diff options
| author | Jeff Carr <[email protected]> | 2024-02-09 09:29:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-09 09:29:55 -0600 |
| commit | c7ea23ddb6559030d0be98bff090bf919b0c4265 (patch) | |
| tree | 8c2cbd57709c683914e0ffd639e86e07950529a6 /action.go | |
| parent | 8317fa28e2da1d22d7248874ebc794189faf23b5 (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'action.go')
| -rw-r--r-- | action.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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() |
