From 9d315c3a00b985ca53c8f7a7f5f355cfb60da775 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Apr 2023 00:34:31 -0500 Subject: [PATCH] ready to start deprecating code Signed-off-by: Jeff Carr --- toolkit/gocui/main.go | 9 +++++---- 1 file 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() }