summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-10 17:03:13 -0600
committerJeff Carr <[email protected]>2024-01-10 17:03:13 -0600
commitb3fce8457ff73a31fe889eb7b1315fae2e016cc4 (patch)
tree4239220e449cf5039b063df92e4439294fca2a71 /main.go
parent330927ee8d5802755ef2bddfe2bd9e71318a0666 (diff)
start fixing GetText() and move to any
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index de7ed7c..61a31c0 100644
--- a/main.go
+++ b/main.go
@@ -81,6 +81,12 @@ func (n *Node) doCustom() {
func (n *Node) doUserEvent(a widget.Action) {
log.Info("doUserEvent() node =", n.id, n.Name)
+ if a.A != nil {
+ log.Warn("doUserEvent() a.A != nil", n.id, n.Name, "n.value =", a.A)
+ n.value = a.A
+ n.doCustom()
+ return
+ }
switch n.WidgetType {
case widget.Checkbox:
n.B = a.B