diff --git a/plugin.go b/plugin.go index 426e500..be30b71 100644 --- a/plugin.go +++ b/plugin.go @@ -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 }