-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix app not quitting completely on Cmd+Q (Mac) #5670
Conversation
No clue why I have added it - IIRC it was there even before in |
I've put up a pull request to add @mwz! 🎉 |
Right - it was there so that the app quits when closing all windows on other platforms. It couldn't have had any effect on macOS. |
Yes - the expression you removed was always The fix must have been due to something else you did - or perhaps you were testing when running via |
Yes that's correct - which means the app on Mac would stay running in the background when all windows were closed until the user explicitly quits it (which as a result prevents mac from shutting down automatically as described in #4930).
ok, sorry that's an oversight on my end - I didn't take other platforms into consideration there. app.on('window-all-closed', () => {
app.quit()
}) It seems that this @Eugeny, are you happy for me to raise a new PR with this change? |
I'm still not getting it. on Windows/Linux, it's: on macOS it's
which is already the same as
The reason for the It seems that listening for the |
I could never quite understand why that's a default Mac behaviour, but yeah sounds like your suggestion might be a better option to what I proposed. I don't have much electron experience, so thanks for bearing with me while I try to work this out. I will give this a try and will get back to you on whether this works. |
ok this works 👍🏻 - I've opened #5743 |
This change seems to fix #4930 for me locally.
This was initially added in bcf09c5 by @Eugeny - is there any specific reason for why you added the check to exclude Macs here?
closes #4930