Added user list serialization to LocalDB

* Added user list to LocalDB
* Removed client user from LocalDB constructor
This commit is contained in:
2019-12-14 08:44:03 +01:00
parent e69deb9bd6
commit 2b1ece1c48
3 changed files with 80 additions and 33 deletions

View File

@ -86,7 +86,7 @@ public class ChatWindow extends JFrame {
@Override
public void windowClosing(WindowEvent evt) {
try {
localDB.saveToLocalDB();
localDB.save();
Settings.getInstance().save();
} catch (IOException e1) {
e1.printStackTrace();