summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/window.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 /toolkit/andlabs/window.go
parent6fb44679a28b29b60018b037c6f328cf3e98f934 (diff)
andlabs: use callback channel for window close
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/window.go')
-rw-r--r--toolkit/andlabs/window.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/andlabs/window.go b/toolkit/andlabs/window.go
index f00e1ee..4b64b12 100644
--- a/toolkit/andlabs/window.go
+++ b/toolkit/andlabs/window.go
@@ -27,7 +27,8 @@ func newWindow(a *toolkit.Action) {
win.SetBorderless(canvas)
win.SetMargined(margin)
win.OnClosing(func(*ui.Window) bool {
- newt.commonChange(newt.tw, a.WidgetId)
+ // newt.commonChange(newt.tw, a.WidgetId)
+ newt.doUserEvent()
return true
})
win.Show()