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

Fix/close x #2279

Merged
merged 3 commits into from Feb 14, 2021
Merged

Fix/close x #2279

merged 3 commits into from Feb 14, 2021

Conversation

Phylu
Copy link
Contributor

@Phylu Phylu commented Feb 5, 2021

Closes #2278.

if (!this.isSpec) {
global.application.windowManager.quitWinLinuxIfNoWindows();
// Tray indicator is switched off, therefore quitting the application.
app.quit();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Phylu! I think this all looks great but I'm not sure offhand if this should be quit() or quitWinLinuxIfNoWindows(). Technically, this means that if you have the system tray turned off but two Mailspring windows open (the main window and a composer), and close the main window the app will quit. I think that's desirable but let's give it a spin and see!

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! I left one inline comment but I think we ship it and see how it feels, this is definitely an improvement!

@bengotow bengotow merged commit 9b8f539 into Foundry376:master Feb 14, 2021
@Phylu Phylu deleted the fix/close-x branch February 14, 2021 18:51
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.

Exit on X button instead of minimizing to tray
2 participants