mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
Merge pull request #111 from ksubileau/patch-2
Don't print close reason to console
This commit is contained in:
@@ -32,7 +32,6 @@ func nativeLoop(title string, width int, height int) {
|
||||
fail("Unable to create main window", err)
|
||||
}
|
||||
mainWindow.Closing().Attach(func(canceled *bool, reason walk.CloseReason) {
|
||||
fmt.Println(reason)
|
||||
// don't close app unless we're actually finished
|
||||
actuallyClose := atomic.LoadInt32(&okayToClose) == 1
|
||||
*canceled = !actuallyClose
|
||||
|
||||
Reference in New Issue
Block a user