Little Bug Fix

This commit is contained in:
DieGurke 2020-07-11 14:46:13 +02:00
parent ba4fdbe2f4
commit 0cebaeacb5

View File

@ -139,6 +139,7 @@ public final class ChatScene implements Restorable {
Platform.runLater(() -> { Platform.runLater(() -> {
userList.getItems().remove(chat); userList.getItems().remove(chat);
userList.getItems().add(0, chat); userList.getItems().add(0, chat);
if (chat.equals(currentChat)) userList.getSelectionModel().select(0);
localDB.getChats().remove(chat); localDB.getChats().remove(chat);
localDB.getChats().add(0, chat); localDB.getChats().add(0, chat);
}); });