diff options
| author | Jeff Carr <[email protected]> | 2025-03-04 01:58:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-04 01:58:24 -0600 |
| commit | be696b98aa22f9cc449236cc6b001f53fde8afc0 (patch) | |
| tree | 6591fb4fdd22f5bd9c223229fd1742c19c8d44a2 | |
| parent | 547e67042d82c0c919e61332371a0a6259efb9fb (diff) | |
test to make a frozen channelv0.22.20
| -rw-r--r-- | init.go | 1 | ||||
| -rw-r--r-- | plugin.go | 5 | ||||
| -rw-r--r-- | structs.go | 1 |
3 files changed, 7 insertions, 0 deletions
@@ -47,6 +47,7 @@ func (me *TreeInfo) catchActionChannel() { func New() *TreeInfo { me := new(TreeInfo) me.pluginChan = make(chan widget.Action, 1) + me.frozenChan = make(chan widget.Action, 1) me.config = configLoad() log.Log(TREE, "Init() start channel reciever") @@ -77,3 +77,8 @@ func (me *TreeInfo) PluginChannel() chan widget.Action { me.WaitOK() return me.pluginChan } + +// this is the function that receives things from the application +func (me *TreeInfo) FrozenChannel() chan widget.Action { + return me.frozenChan +} @@ -23,6 +23,7 @@ type TreeInfo struct { config *ToolkitConfigs // protobuf of plugin settings callback chan widget.Action // mouse clicks or keyboard events back to the program pluginChan chan widget.Action // this is the channel we get requests to make widgets + frozenChan chan widget.Action // expirement to get fyne to work Add func(*Node) // add a new widget AddText func(*Node, string) // add a string to a dropdown widget SetText func(*Node, string) // set the text of a widget |
