diff options
| author | Jeff Carr <[email protected]> | 2025-03-05 12:11:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-05 12:42:50 -0600 |
| commit | f984dd3a9fe7cf319ea2f0837eb8d0fc2af37b70 (patch) | |
| tree | feeded637a6ab8ab6ceda7a53fa79d783bb0ea8c /init.go | |
| parent | e93d9586929b5ac50628180b45e010bf898ec7bb (diff) | |
passes mouse clicks to gitpb
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -213,6 +213,8 @@ func watchCallback() { */ break } + log.Log(WARN, "guiChan() n == nil is widget id in a table?", a.ActionType, a.WidgetId) + log.Log(WARN, "guiChan() todo: list tables here") log.Log(WARN, "guiChan() Action could not be found or handled", a.ActionType, a) } } @@ -232,6 +234,16 @@ func (n *Node) gotUserEvent(a widget.Action) { return } + if ok, pb := n.isWidgetInTable(); ok { + log.Log(WARN, "widget is in pb table", n.id, n.progname, a.Value) + if pb != nil { + log.Log(WARN, "found pb table", pb.GetUuid()) + pb.Custom(n.id) + } + } else { + log.Log(WARN, "widget is not in pb table", n.id, n.progname, a.Value) + } + switch n.WidgetType { case widget.Dropdown: // n.checked = a.State.Checked // TODO: do this and/or time to switch to protobuf |
