From de249412fb672be9f970f54a2035e21bcfb3ce42 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 7 Apr 2023 22:12:18 -0500 Subject: [PATCH] andlabs now works the 'new way' Signed-off-by: Jeff Carr --- plugin.go | 3 +++ toolkit/andlabs/main.go | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/plugin.go b/plugin.go index 1b3499d..caabd9e 100644 --- a/plugin.go +++ b/plugin.go @@ -336,6 +336,9 @@ func newaction(a *toolkit.Action, n *Node, where *Node) { continue } if (aplug.pluginChan == nil) { + log(debugNow, "Action() SEND old way") + log(debugNow, "Action() SEND old way") + log(debugNow, "Action() SEND old way") aplug.Action(a) } else { log(debugNow, "Action() SEND pluginChan") diff --git a/toolkit/andlabs/main.go b/toolkit/andlabs/main.go index bf13746..19a8aaa 100644 --- a/toolkit/andlabs/main.go +++ b/toolkit/andlabs/main.go @@ -55,6 +55,11 @@ func Callback(guiCallback chan toolkit.Action) { callback = guiCallback } +func PluginChannel() chan toolkit.Action { + return pluginChan +} + + // Other goroutines must use this to access the GUI // // You can not acess / process the GUI thread directly from