From 39b8de4824ac561403aef416d8bfa0772e002f89 Mon Sep 17 00:00:00 2001 From: Zkitefly <2573874409@qq.com> Date: Wed, 1 Jan 2025 07:40:13 +0000 Subject: [PATCH] fix --- .../org/jackhuang/hmcl/ui/download/VersionsPage.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java index e96e44d4e..35974e30e 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java @@ -176,7 +176,15 @@ public final class VersionsPage extends BorderPane implements WizardPage, Refres this.setCenter(root); versionList = downloadProvider.getVersionListById(libraryId); - if (versionList.hasType()) { + boolean hasType = versionList.hasType(); + chkRelease.setManaged(hasType); + chkRelease.setVisible(hasType); + chkSnapshot.setManaged(hasType); + chkSnapshot.setVisible(hasType); + chkOld.setManaged(hasType); + chkOld.setVisible(hasType); + + if (hasType) { centrePane.getContent().setAll(checkPane, list); } else { centrePane.getContent().setAll(list);