Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: Close App When All Windows Closed #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MutableLoss
Copy link

Fix
Closes the app when the renderer process is stopped when using on OSX, so menu item errors cannot be thrown.

Reason:
What lead me to this PR, was that the menu items will throw errors when the renderer is closed. This update makes sure the main process is killed with the renderer process, so this cannot happen.

The main process menu items requires the webContents object to be present, and without a tray menu, I'm not seeing a reason for the app to stay open after the main renderer process closes in OSX. Maybe I'm overlooking something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant