Commit 0573e92
committed
Fix logic of all windows closed event on macos
The application was not raising the all windows closed event which
didn't allow the .NET application to exit properly when the last window
was closed.
The recommendation by electronjs is to subscribe to the all windows
closed event and exit the app via code on macos.
This change allows the event to propagated up to the .NET application.
It may be better to move all of the logic surrounding this to the
ElectronNET.API project and allow the application developer full
control over the behavior. For now, this fixes the immediate bug.
GH-3461 parent 05de407 commit 0573e92
File tree
4 files changed
+25
-14
lines changed- ElectronNET.API
- ElectronNET.Host/api
4 files changed
+25
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments