From 1275e3899535f29ee08071bd6520abc035b1e727 Mon Sep 17 00:00:00 2001 From: Burning_TNT <88144530+burningtnt@users.noreply.github.com> Date: Fri, 31 May 2024 23:10:02 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#3006:=20=E5=85=A8=E5=B1=80=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E8=AE=BE=E7=BD=AE=E4=B8=AD=E7=89=88=E6=9C=AC=E9=9A=94?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E5=90=AF=E5=90=8E=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E5=BE=84=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E4=B8=BA=E2=80=9Dnull=E2=80=9C=20(#3028)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java index 92fc0fed46..42ffc4c3d8 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java @@ -30,7 +30,9 @@ import javafx.scene.layout.*; import javafx.scene.text.Text; import javafx.stage.FileChooser; -import org.jackhuang.hmcl.game.*; +import org.jackhuang.hmcl.game.GameDirectoryType; +import org.jackhuang.hmcl.game.HMCLGameRepository; +import org.jackhuang.hmcl.game.ProcessPriority; import org.jackhuang.hmcl.setting.*; import org.jackhuang.hmcl.task.Schedulers; import org.jackhuang.hmcl.task.Task; @@ -184,7 +186,7 @@ public VersionSettingsPage(boolean globalSetting) { gameDirSublist = new ComponentSublist(); gameDirSublist.getContent().add(gameDirItem); gameDirSublist.setTitle(i18n("settings.game.working_directory")); - gameDirSublist.setHasSubtitle(true); + gameDirSublist.setHasSubtitle(versionId != null); gameDirItem.disableProperty().bind(modpack); gameDirCustomOption = new MultiFileItem.FileOption<>(i18n("settings.custom"), GameDirectoryType.CUSTOM) .setChooserTitle(i18n("settings.game.working_directory.choose"))