From f7526d4cdc2bf00272fbf25053c2fb31a81128a9 Mon Sep 17 00:00:00 2001 From: zkitefly <64117916+zkitefly@users.noreply.github.com> Date: Thu, 2 Feb 2023 21:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=88=9D=E5=A7=8B=E5=8C=96=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E8=AE=BE=E5=AE=9A=E4=B8=BA=E2=80=9C=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E2=80=9D=E6=8E=92=E5=BA=8F=20(#2054)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 将初始化内容设定为“名称”排序 * 更新 RemoteModRepository.java --- .../java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java | 2 +- .../main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java index 28744272d..d5a480ddc 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java @@ -118,7 +118,7 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP if (!searchInitialized) { searchInitialized = true; - search("", null, 0, "", RemoteModRepository.SortType.DATE_CREATED); + search("", null, 0, "", RemoteModRepository.SortType.NAME); } if (versionSelection) { diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java index 5fd4c5542..50a43e9ba 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java @@ -38,10 +38,10 @@ public interface RemoteModRepository { Type getType(); enum SortType { + NAME, DATE_CREATED, POPULARITY, LAST_UPDATED, - NAME, AUTHOR, TOTAL_DOWNLOADS } @@ -89,7 +89,7 @@ public interface RemoteModRepository { } String[] DEFAULT_GAME_VERSIONS = new String[]{ - "1.19.3", "1.19.2", "1.19.1", "1.19", + "1.19.4", "1.19.3", "1.19.2", "1.19.1", "1.19", "1.18.2", "1.18.1", "1.18", "1.17.1", "1.17", "1.16.5", "1.16.4", "1.16.3", "1.16.2", "1.16.1", "1.16",