summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolkit/gocui/main.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/toolkit/gocui/main.go b/toolkit/gocui/main.go
index 2365f6f..4dd7112 100644
--- a/toolkit/gocui/main.go
+++ b/toolkit/gocui/main.go
@@ -26,6 +26,11 @@ func Init() {
me.padW = 3
me.padH = 3
+
+ me.pluginChan = make(chan toolkit.Action)
+
+ log(logNow, "Init() start pluginChan")
+ go catchActionChannel()
}
// this sets the channel to send user events back from the plugin
@@ -67,10 +72,6 @@ func Main(f func()) {
setOutput(outf)
log("This is a test log entry")
- if (me.pluginChan == nil) {
- me.pluginChan = make(chan toolkit.Action)
- }
- go catchActionChannel()
MouseMain()
me.baseGui.Close()
}