Skip to content

Commit 13b974d

Browse files
Glavo3gf8jv4dv
authored andcommitted
fix: update title label to use display name directly (#5152)
1 parent 581ff57 commit 13b974d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public MessageDialogPane(@NotNull String text, @Nullable String title, @NotNull
9898
{
9999
StackPane titlePane = new StackPane();
100100
titlePane.getStyleClass().addAll("jfx-layout-heading", "title");
101-
titlePane.getChildren().setAll(new Label(title != null ? title : i18n(type.getDisplayName())));
101+
titlePane.getChildren().setAll(new Label(title != null ? title : type.getDisplayName()));
102102

103103
StackPane content = new StackPane();
104104
content.getStyleClass().add("jfx-layout-body");

0 commit comments

Comments
 (0)