add a frozen channel
This commit is contained in:
parent
6127fa1cbb
commit
5ebb13a454
10
treeInit.go
10
treeInit.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue