-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed confirmExit for Electron apps.
The previous implementation did not work because the window was unloaded before the dialog could be opened. This implementation gets around some… unusual behaviour of Electron's beforeunload event by using the will-prevent-unload WebContents event. Signed-off-by: Matthew Gordon <[email protected]>
- Loading branch information
1 parent
fcccdf4
commit aff11be
Showing
6 changed files
with
31 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
packages/core/src/electron-browser/shutdown-hook/electron-shutdown-hook-module.ts
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
packages/core/src/electron-browser/shutdown-hook/electron-shutdown-hook.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters