Hi, new user here. I would like to be able to have the minimise [-] button minimise to the taskbar and the close [x] button minimise to the tray. Currently, the options do not allow for this. There are two relevant tickboxes in the options, "Minimise to tray instead of taskbar" and "Close button minimises main window instead of closing the application". I propose that the second option is changed to "Close button minimises main window to the tray instead of closing the application". Or, there could be drop-down menus to decide what each button does, for example for minimise there could be the options "minimise to taskbar" and "minimise to tray" and for close there could be "close program" and "minimise to tray". Either of these two suggestions would be better than the current options but having drop-downs would be best as it would be the simplest to use and understand and least confusing for users.
I will now try and argue in more detail why I think this change is necessary, read on if you are not yet convinced.
Currently, there are four possible scenarios with the options:
1) Default options
Minimise button: minimises to taskbar
Close button: closes program
2) "Minimise to tray instead of taskbar" ticked, "Close button minimises main window instead of terminating the application" unticked
Minimise button: minimises to tray
Close button: closes program
3) "Minimise to tray instead of taskbar" ticked, "Close button minimises main window instead of terminating the application" ticked
Both buttons minimise to tray
4) "Minimise to tray instead of taskbar" unticked, "Close button minimises main window instead of terminating the application" ticked
Both buttons minimise to taskbar
As you can see, in scenarios 3 and 4, both buttons do the same thing, so these scenarios are not useful.
If the second tickbox option was changed to what I suggest ("Close button minimises main window to the tray instead of closing the application"), these would be the scenarios:
1)Minimise button: minimises to taskbar
Close button: closes program
2)Minimise button: minimises to tray
Close button: closes program
3)Both buttons minimise to tray
4)Minimise button: minimises to taskbar
Close button: minimises to tray
As you can see, with this method there are 3/4 useful scenarios rather than 2/4.
These would be the scenarios if drop-down menus were implemented:
1) Minimise drop-down: "minimise to taskbar" selected
Close drop-down: "close program" selected
2) Minimise drop-down: "minimise to taskbar" selected
Close drop-down: "minimise to tray" selected
3) Minimise drop-down: "minimise to tray" selected
Close drop-down: "close program" selected
4) Minimise drop-down: "minimise to tray" selected
Close drop-down: "minimise to tray" selected
With drop-downs, the scenarios are the same as if the tickbox option was changed, but the benefit is that it would be much simpler for users to get the behaviour they want and less confusing. Therefore this is the best method.
Relevant discussion: https://sourceforge.net/p/keepass/discussion/329221/thread/491b0ed4/