diff options
| author | Jeff Carr <[email protected]> | 2023-04-06 19:48:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-06 19:48:24 -0500 |
| commit | 8649f37a56bc31928d69077545f1e323a794c61a (patch) | |
| tree | a3567c8f8a6b3caa8402a0640baa56630dcf972e /main.go | |
| parent | 6fb44679a28b29b60018b037c6f328cf3e98f934 (diff) | |
andlabs: use callback channel for window close
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) } |
