add a frozen channel

This commit is contained in:
Jeff Carr 2025-03-04 01:58:13 -06:00
parent 6127fa1cbb
commit 5ebb13a454
1 changed files with 4 additions and 6 deletions

View File

@ -51,9 +51,6 @@ func Callback(guiCallback chan widget.Action) {
} }
func PluginChannel() chan widget.Action { func PluginChannel() chan widget.Action {
log.Info("PluginChannel() INIT(l)")
log.Info("PluginChannel() INIT(l)")
log.Info("PluginChannel() INIT(l)")
initOnce.Do(initPlugin) initOnce.Do(initPlugin)
for { for {
if me.myTree != nil { if me.myTree != nil {
@ -62,12 +59,13 @@ func PluginChannel() chan widget.Action {
log.Info("me.myTree == nil") log.Info("me.myTree == nil")
time.Sleep(300 * time.Millisecond) time.Sleep(300 * time.Millisecond)
} }
log.Info("PluginChannel() DONE()")
log.Info("PluginChannel() DONE()")
log.Info("PluginChannel() DONE()")
return me.myTree.PluginChannel() return me.myTree.PluginChannel()
} }
func FrozenChannel() chan widget.Action {
return me.myTree.FrozenChannel()
}
func initTree() *tree.TreeInfo { func initTree() *tree.TreeInfo {
t := tree.New() t := tree.New()
t.PluginName = PLUGIN t.PluginName = PLUGIN