-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Quit does not work, have to force quit on MacOS #157
Comments
Wow nice |
But right-> quit should work as in other apps, for example Telegram @xyloflake |
@demensdeum Hello. |
@staniel359 idea that vscode, telegram, Firefox, Google Chrome are closing entirely from dock -> right click-> context menu -> quit (process exits/killed) on MacOS, and muffin is still appear, and if window closed it looks like it stuck. |
@demensdeum Got it, needs an improvement. |
@staniel359 what's the proposed solution to this? Quit on calling quit from dock? |
@xyloflake On Linux "Quit" from dock behaves like close button. |
@staniel359 it's the same on macOS but the expected behaviour is to exit when you click on quit |
@xyloflake Ok then. |
@staniel359 ok what? Change the default setting to exit on close = true on macOS? |
Ok to this. |
@staniel359 I mean we should just change the default value for macos right? |
@staniel359 No. |
@staniel359 idt there's any way to differentiate the close button and quit from dock. Also, the red button on macOS is for closing the app and yellow is for minimising the app, why would anyone click close if they do not mean to close it? |
@xyloflake Don't know about Mac, but on Windows "Close" can either exit or just close the window if tray is present. |
@demensdeum @xyloflake The current logic is: Unforunately Electron's API doesn't allow to tell whether the app is being quit from dock or not: |
@staniel359 electron's API does not "tell" you where the app is closed from because macos doesn't treat both of them as different. And if you abide by the rules of macos, which you totally should for UX purposes, you should never ever treat both of them differently. The default on macos should be changed to abide by it. Therefore unless explicitly stated by the user, it will treat both of them as the same. |
A solution to tell apart dock and window close would be to include custom window control buttons that look like the original ones but in reality it would be custom, therefore allowing you to detect close when triggered through the window control buttons. |
@xyloflake Good point. |
Thanks. Let's keep this open and wait for the frameless window task to be completed. Once that's done, we can try to bring in custom window controls. |
Steps:
The text was updated successfully, but these errors were encountered: