summaryrefslogtreecommitdiff
path: root/plugin.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 /plugin.go
parent8317fa28e2da1d22d7248874ebc794189faf23b5 (diff)
gocui panic() loads nocui correctlyv0.20.3v0.20.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index 1f83c52..2f72c50 100644
--- a/plugin.go
+++ b/plugin.go
@@ -24,6 +24,10 @@ type aplug struct {
filename string
plug *plugin.Plugin
+ // set this to true if the plugin dies
+ // TODO: remove the plugin from the pool
+ dead bool
+
// this tells the toolkit plugin how to send events
// back here
//
@@ -269,6 +273,7 @@ func (n *Node) LoadToolkit(name string) *Node {
if plug == nil {
return n
}
+ plug.dead = false
log.Log(PLUG, "LoadToolkit() sending Toolkit Init action to the plugin channel")
var a widget.Action