summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 12:11:46 -0600
committerJeff Carr <[email protected]>2025-03-05 12:42:50 -0600
commitf984dd3a9fe7cf319ea2f0837eb8d0fc2af37b70 (patch)
treefeeded637a6ab8ab6ceda7a53fa79d783bb0ea8c /init.go
parente93d9586929b5ac50628180b45e010bf898ec7bb (diff)
passes mouse clicks to gitpb
Diffstat (limited to 'init.go')
-rw-r--r--init.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.go b/init.go
index 6887436..5a71eda 100644
--- a/init.go
+++ b/init.go
@@ -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