andlabs now works the 'new way'
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b7ef4f6a2e
commit
de249412fb
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue