summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 19:48:24 -0500
committerJeff Carr <[email protected]>2023-04-06 19:48:24 -0500
commit8649f37a56bc31928d69077545f1e323a794c61a (patch)
treea3567c8f8a6b3caa8402a0640baa56630dcf972e /main.go
parent6fb44679a28b29b60018b037c6f328cf3e98f934 (diff)
andlabs: use callback channel for window close
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index cda74a6..85d25aa 100644
--- a/main.go
+++ b/main.go
@@ -142,6 +142,13 @@ func (n *Node) doUserEvent(a toolkit.Action) {
return
}
n.Custom()
+ case toolkit.Window:
+ log(logNow, "doUserEvent() window =", n.id, n.Name)
+ if (n.Custom == nil) {
+ log(debugError, "Custom() = nil. SKIPPING")
+ return
+ }
+ n.Custom()
default:
log(logNow, "doUserEvent() type =", n.WidgetType)
}