summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
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