Apply suggestions from code review
Co-authored-by: CyB3RC0nN0R <CyB3RC0nN0R@users.noreply.github.com>
This commit is contained in:
parent
bbd5f61486
commit
29a667389d
@ -39,7 +39,10 @@ public class ContactListCell extends ListCell<Contact> {
|
||||
final var statusLabel = new Label(user.getStatus().toString());
|
||||
statusLabel.getStyleClass().add(user.getStatus().toString().toLowerCase());
|
||||
vbox.getChildren().add(statusLabel);
|
||||
} else vbox.getChildren().add(new Label(((Group) contact).getContacts().size() + " members"));
|
||||
} else {
|
||||
// Member count
|
||||
vbox.getChildren().add(new Label(((Group) contact).getContacts().size() + " members"));
|
||||
}
|
||||
setGraphic(vbox);
|
||||
}
|
||||
}
|
||||
|
@ -317,7 +317,7 @@ public final class ChatScene {
|
||||
*/
|
||||
private void scrollToMessageListEnd() { messageList.scrollTo(messageList.getItems().size() - 1); }
|
||||
|
||||
// =========== contextMenu actions ========== //
|
||||
// Context menu actions
|
||||
|
||||
@FXML
|
||||
private void copyMessage() {
|
||||
@ -349,5 +349,4 @@ public final class ChatScene {
|
||||
updateRemainingCharsLabel();
|
||||
postButton.setDisable(messageText.isBlank());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user