mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Electron.App.WindowAllClosed does not work #690
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iamSmallY on GitHub (Aug 17, 2021).
Electron.App.Quit(), but I want to not call these functions when the user forcibly exits the program. So I tried to use thewindow-all-closedevent. But when I use theElectron.App.WindowAllClosedbinding theElectron.App.Exit()function, it does not exit successfully. What's more, when I useElectron.App.On()to listen on "window-all-closed" event, it works.Steps to Reproduce:
Electron.App.WindowAllClosed:Electron.App.On:@iamSmallY commented on GitHub (Aug 17, 2021):
After read the source code, I have changed my code like this:
And it works.