This is basically a must for every app.
I don’t want it running in the background.
Or in more detail:
An option to exit the process when i press the X-Button instead of hiding the window.
That’s what the “–” Button is for, you know? We don’t need a second one of those!
1 Like
Well, I would not kind of like that behaviour. Actually, it should depend on an option if on closing Mailspring should minimise to tray.
So the basic rules most of the apps abide are:
the _
button minimises the window to panel (the window is still open);
the x
button:
[enabled minimise to tray] closes the window, but the app is still running in the background and is accessible from systray;
[disabled minimise to tray] closes the window and quits the app (no background running).
Also most apps follow the following keyboard shortcuts:
Ctrl +W : closes the current window; if it is the last/only window of an app, it behaves as clicking on the x
button (see above);
Ctrl +Q : quits app (the state of the minimise to tray option does not matter).
Leonetienne
(Leon Etienne)
January 24, 2021, 12:10pm
#3
You just repeated what I’ve suggested. An option to exit the process on X. No forced behavior.
Yeah, but with a subtle difference: make it dependent on the minimise to tray
setting. Here is the relevant portion of my previous comment:
the x button:
[enabled minimise to tray] closes the window, but the app is still running in the background and is accessible from systray;
[disabled minimise to tray] closes the window and quits the app (no background running).
Phylu
(Janosch Braukmann)
January 25, 2021, 1:45pm
#5
I would have expected the X-Button to work just as @tukusejssirs described it. However, even when “Show icon in menu bar / system tray” is disabled, the X does not quit the application, but rather minimizes it.
My suggestion would be to follow the proposal:
Yeah, but with a subtle difference: make it dependent on the minimise to tray setting. Here is the relevant portion of my previous comment:
the x button:
[enabled minimise to tray] closes the window, but the app is still running in the background and is accessible from systray;
[disabled minimise to tray] closes the window and quits the app (no background running).
However, I am not sure if there is any reason for the current behaviour.
Phylu
(Janosch Braukmann)
February 4, 2021, 7:23pm
#7
Implementation in progress as of:
opened 07:22PM - 04 Feb 21 UTC
Objective
Implement the following behavior for the the x button:
[enabled minimise to tray] closes the window, but the app is still running...
Phylu
(Janosch Braukmann)
February 15, 2021, 8:25am
#8
The PR has been merged and will be included in the next release. Please open a new issue here, should this arise again.