diff options
| author | Jeff Carr <[email protected]> | 2025-03-04 01:57:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-04 01:57:59 -0600 |
| commit | f65d80862e9ef92ab8b36829342a6738cbc4b5d5 (patch) | |
| tree | f8733a57b92c35d7d634e91a60aee98a549d6fa1 /treeInit.go | |
| parent | dcd32c255c4c4a7b31ebc2395a541704a753a092 (diff) | |
Diffstat (limited to 'treeInit.go')
| -rw-r--r-- | treeInit.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/treeInit.go b/treeInit.go index 78ff4fb..aa709a8 100644 --- a/treeInit.go +++ b/treeInit.go @@ -32,6 +32,9 @@ package main */ import ( + "time" + + log "go.wit.com/log" "go.wit.com/toolkits/tree" "go.wit.com/widget" ) @@ -49,9 +52,20 @@ func Callback(guiCallback chan widget.Action) { func PluginChannel() chan widget.Action { initOnce.Do(initPlugin) + for { + if me.myTree != nil { + break + } + log.Info("me.myTree == nil") + time.Sleep(300 * time.Millisecond) + } return me.myTree.PluginChannel() } +func FrozenChannel() chan widget.Action { + return me.myTree.FrozenChannel() +} + func initTree() *tree.TreeInfo { t := tree.New() t.PluginName = PLUGIN @@ -64,7 +78,11 @@ func initTree() *tree.TreeInfo { t.Enable = enableWidget t.Disable = disableWidget + t.Show = showWidget + t.Hide = hideWidget + t.SetChecked = setChecked + t.ToolkitInit = toolkitInit t.ToolkitClose = toolkitClose t.ShowTable = showTable |
