diff options
| author | Jeff Carr <[email protected]> | 2025-02-13 14:14:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-13 14:14:39 -0600 |
| commit | dcfa5d03ee7127d894f38e6ec5a2a8f9ffacfc96 (patch) | |
| tree | d7141482cdb4fa5bff046f78e8df5bc0f0748c0e | |
| parent | 827a258a867a652ea2207877d3dc7541d1afca26 (diff) | |
using WaitOK() to debug gocui & andlabs init()
| -rw-r--r-- | plugin.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ func (me *TreeInfo) InitOK() { // this hack is to wait for the application to send something // before trying to do anything. todo: rethink this someday -func (me *TreeInfo) waitOK() { +func (me *TreeInfo) WaitOK() { for { if me.ok { return @@ -66,6 +66,6 @@ func (me *TreeInfo) Callback(guiCallback chan widget.Action) { // this is the function that receives things from the application func (me *TreeInfo) PluginChannel() chan widget.Action { - me.waitOK() + me.WaitOK() return me.pluginChan } |
