ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
111 stars 96 forks source link

New preference to configure what CS-Studio should do when closing the last window. #2669

Closed rjwills28 closed 3 years ago

rjwills28 commented 3 years ago

Gnome3 does not have a tray and so the option that is displayed when the last CS-Studio window is closed to minimize to tray makes no sense in this case. If the window is minimized to tray it then becomes impossible to get back.

We have created a new preference that dictates what to do when closing the last CS-Studio window. There are 3 options: ask to minimize to tray (which will bring up the previous minimize to tray dialog with the same functionality), warn that the last window is being closed (options to cancel or exit), or finally just close the window with no prompts. The 'warning of last window' dialog also allows the user to select 'do not warn again'.