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 --- plugin.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin.go') 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 -- cgit v1.2.3