diff options
| author | Jeff Carr <[email protected]> | 2023-04-08 00:34:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-08 00:34:31 -0500 |
| commit | 0f3074ab5d606822ae0d170da84507d6e24471e6 (patch) | |
| tree | ae131609fba501d868df7905e25a88cb1add265e /toolkit/gocui/main.go | |
| parent | 55b5aed5c4837c8de131925966b328f43bb03b61 (diff) | |
ready to start deprecating code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/main.go')
| -rw-r--r-- | toolkit/gocui/main.go | 9 |
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() } |
