The friends tab will now always have a minimum width, not just when minimized.

This commit is contained in:
Sorzon 2020-05-11 19:28:55 +02:00
parent 40c39209de
commit 8c8a0b753c
1 changed files with 1 additions and 2 deletions

View File

@ -280,10 +280,9 @@ public class KamiGUI extends GUI {
Frame finalFrame = frame;
friends.addTickListener(() -> {
friends.setText("");
friends.setWidth(50);
if (!finalFrame.isMinimized()) {
Friends.friends.getValue().forEach(friend -> friends.addLine(friend.getUsername()));
} else {
friends.setWidth(50);
}
});