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