From 5443ae6ae035d403916c4ca9db1603e59cbba28f Mon Sep 17 00:00:00 2001 From: David Gerber Date: Thu, 26 Dec 2024 02:25:20 +0100 Subject: [PATCH] Fix freeze bug (really) --- ui/src/main/java/io/xeres/ui/custom/ChatListCell.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/main/java/io/xeres/ui/custom/ChatListCell.java b/ui/src/main/java/io/xeres/ui/custom/ChatListCell.java index 63b7a1ec..ed0c0e48 100644 --- a/ui/src/main/java/io/xeres/ui/custom/ChatListCell.java +++ b/ui/src/main/java/io/xeres/ui/custom/ChatListCell.java @@ -75,7 +75,10 @@ public void reset() { if (isReusable()) { - content.getChildren().remove(2); // keep time and action only + if (content.getChildren().size() > 2) + { + content.getChildren().remove(2); // keep time and action only + } } }