fix: update title label to use display name directly (#5152)

This commit is contained in:
Glavo
2026-01-06 22:14:30 +08:00
committed by GitHub
parent 686f59e21b
commit c6c302e3d6

View File

@@ -87,7 +87,7 @@ public final class MessageDialogPane extends HBox {
{
StackPane titlePane = new StackPane();
titlePane.getStyleClass().addAll("jfx-layout-heading", "title");
titlePane.getChildren().setAll(new Label(title != null ? title : i18n(type.getDisplayName())));
titlePane.getChildren().setAll(new Label(title != null ? title : type.getDisplayName()));
StackPane content = new StackPane();
content.getStyleClass().add("jfx-layout-body");