andlabs now works the 'new way'

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-07 22:12:18 -05:00
parent b7ef4f6a2e
commit de249412fb
2 changed files with 8 additions and 0 deletions

View File

@ -336,6 +336,9 @@ func newaction(a *toolkit.Action, n *Node, where *Node) {
continue continue
} }
if (aplug.pluginChan == nil) { 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) aplug.Action(a)
} else { } else {
log(debugNow, "Action() SEND pluginChan") log(debugNow, "Action() SEND pluginChan")

View File

@ -55,6 +55,11 @@ func Callback(guiCallback chan toolkit.Action) {
callback = guiCallback callback = guiCallback
} }
func PluginChannel() chan toolkit.Action {
return pluginChan
}
// Other goroutines must use this to access the GUI // Other goroutines must use this to access the GUI
// //
// You can not acess / process the GUI thread directly from // You can not acess / process the GUI thread directly from