Merge pull request #77 from informatik-ag-ngl/f/onCloseToggleSwitch

General Settings screen
This commit is contained in:
DieGurke
2019-12-23 14:20:47 +01:00
committed by GitHub
12 changed files with 522 additions and 87 deletions

View File

@ -142,8 +142,9 @@ public class Startup {
try {
new StatusTrayIcon(chatWindow).show();
// If the tray icon is supported, hide the chat window on close
chatWindow.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
// If the tray icon is supported and corresponding settings is set, hide the chat window on close
if (Settings.getInstance().getCurrentOnCloseMode())
chatWindow.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
} catch (EnvoyException e) {
logger.warning("The StatusTrayIcon is not supported on this platform!");
}