diff options
| author | Jeff Carr <[email protected]> | 2024-01-21 14:43:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-21 14:43:46 -0600 |
| commit | 3a33ba5dad3c6307c74b859e8e9afe24b863a140 (patch) | |
| tree | ec434f9487f443d13707e77f2dc18b09e2cfc2af /init.go | |
| parent | b19c1e237db79b615a037b6034d45ac54c7ff233 (diff) | |
minor changesv0.0.8
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -24,24 +24,14 @@ func (me *TreeInfo) catchActionChannel() { select { case a := <-me.pluginChan: log.Verbose("catchActionChannel() on ", a.WidgetId, a.WidgetType, a.ProgName) - // log.Warn("catchActionChannel() STUFF", a.WidgetId, a.ActionType, a.WidgetType) - /* - if a.WidgetType == widget.Dropdown { - log.Warn("Found dropdown", a.WidgetId, a.ActionType, a.WidgetType) - for i, s := range a.State.Strings { - log.Warn("a.State.Strings =", i, s) - } - } - */ muAction.Lock() - // send this to the toolkit if me.ActionFromChannel == nil { log.Error(errors.New("toolkit ActionFromChannel == nil"), a.WidgetId, a.ActionType, a.WidgetType) } else { + // send this to the toolkit me.ActionFromChannel(a) } muAction.Unlock() - // log.Log(TREE, "catchActionChannel() STUFF END", a.WidgetId, a.ActionType, a.WidgetType) } } } @@ -51,9 +41,9 @@ func New() *TreeInfo { me.pluginChan = make(chan widget.Action, 1) /* - full := "go.wit.com/gui" - short := "gui" - TREE = log.NewFlag("TREE", true, full, short, "treeRoot info") + full := "go.wit.com/gui" + short := "gui" + TREE = log.NewFlag("TREE", true, full, short, "treeRoot info") */ log.Log(TREE, "Init() start channel reciever") |
