summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-08 15:34:36 -0500
committerJeff Carr <[email protected]>2023-04-08 15:34:36 -0500
commitb24cc5898604191df7bfc2cacd7bc5043fa14a42 (patch)
tree31c011056e67b103ef62c33434ff04fe345a3571 /plugin.go
parent0e0787c0620c0dca59378d1e3b355c60a1a82de1 (diff)
gocui: compiling and running again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index 00a9064..df661a1 100644
--- a/plugin.go
+++ b/plugin.go
@@ -118,10 +118,11 @@ func LoadToolkit(name string) *aplug {
log(debugPlugin, "LoadToolkit() END", newPlug.name, filename)
newPlug.Init()
+
+ // set the communication to the plugins
newPlug.pluginChan = newPlug.PluginChannel()
+ newPlug.Callback(Config.guiChan)
- // TODO: find a new way to do this that is locking, safe and accurate
- Config.rootNode.redraw(newPlug)
newPlug.LoadOk = true
return newPlug
}