Skip to content

Commit 92b0388

Browse files
Merge pull request #405 from dafergu2/master
Update application exit logic
2 parents 672e3b8 + b027ca7 commit 92b0388

File tree

5 files changed

+30
-14
lines changed

5 files changed

+30
-14
lines changed

ElectronNET.API/App.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Newtonsoft.Json.Linq;
44
using Newtonsoft.Json.Serialization;
55
using System;
6+
using System.Runtime.InteropServices;
67
using System.Threading;
78
using System.Threading.Tasks;
89

@@ -31,7 +32,7 @@ public event Action WindowAllClosed
3132
{
3233
BridgeConnector.Socket.On("app-window-all-closed" + GetHashCode(), () =>
3334
{
34-
if (!Electron.WindowManager.IsQuitOnWindowAllClosed)
35+
if (!Electron.WindowManager.IsQuitOnWindowAllClosed || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
3536
{
3637
_windowAllClosed();
3738
}

ElectronNET.Host/api/app.js

Lines changed: 11 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)