summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin.go3
-rw-r--r--toolkit/andlabs/main.go5
2 files changed, 8 insertions, 0 deletions
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