From 54eab873569ef113ad38915c1684ae9cdf8da43c Mon Sep 17 00:00:00 2001 From: zkitefly <64117916+zkitefly@users.noreply.github.com> Date: Sat, 11 Feb 2023 13:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E2=80=9C=E7=83=AD=E5=BA=A6=E2=80=9D?= =?UTF-8?q?=20=20(#2099)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 将初始化内容设定为“名称”排序 * 更新 RemoteModRepository.java * 初始化内容修改为“下载量” 搜索时排序依然是“名称” * 还是默认“热度”吧 因为一般搜模组都是搜热度比较高的,搜出的结果就较为准确 * Update DownloadListPage.java --- .../java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java | 2 +- .../main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 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 829894a4d..db06eddb3 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.TOTAL_DOWNLOADS); + search("", null, 0, "", RemoteModRepository.SortType.POPULARITY); } 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 50a43e9ba..20ad92e5b 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/RemoteModRepository.java @@ -38,9 +38,9 @@ public interface RemoteModRepository { Type getType(); enum SortType { + POPULARITY, NAME, DATE_CREATED, - POPULARITY, LAST_UPDATED, AUTHOR, TOTAL_DOWNLOADS