Enter to Send and Revising

* Revised style and improved object architecture
* Added Enter to Send mechanism.
This commit is contained in:
DieGurke
2019-12-23 00:03:22 +01:00
parent 141b2371cc
commit 5090e81b56
6 changed files with 154 additions and 74 deletions

View File

@ -132,7 +132,7 @@ public class Startup {
new StatusTrayIcon(chatWindow).show();
// If the tray icon is supported, hide the chat window on close
if (Settings.getInstance().getCurrentOnCloseMode() == 1) {
if (Settings.getInstance().getCurrentOnCloseMode() == true) {
chatWindow.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
} else {
chatWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);