Merge pull request #111 from ksubileau/patch-2

Don't print close reason to console
This commit is contained in:
joesis
2019-12-09 17:30:27 -08:00
committed by GitHub
-1
View File
@@ -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