Merge pull request #77 from informatik-ag-ngl/f/onCloseToggleSwitch
General Settings screen
This commit is contained in:
@ -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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user