aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform
diff options
context:
space:
mode:
authorDioEgizio <83089242+DioEgizio@users.noreply.github.com>2022-06-24 10:47:02 +0200
committerGitHub <noreply@github.com>2022-06-24 10:47:02 +0200
commit04e8780dd088e500fb2d22564b4bb83b1640c14a (patch)
treeebc0091e89e0570fced0d0c66bf29c8fb385f3cc /launcher/ui/pages/modplatform
parent821edf0f51776155a68a74a310ee7d03b8ea2c71 (diff)
downloadPrismLauncher-04e8780dd088e500fb2d22564b4bb83b1640c14a.tar.gz
PrismLauncher-04e8780dd088e500fb2d22564b4bb83b1640c14a.tar.bz2
PrismLauncher-04e8780dd088e500fb2d22564b4bb83b1640c14a.zip
fix(modrinth): fix sorting
Diffstat (limited to 'launcher/ui/pages/modplatform')
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
index 07d1687c..96118284 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
@@ -160,15 +160,15 @@ static auto sortFromIndex(int index) -> QString
{
switch(index){
default:
- case 1:
+ case 0:
return "relevance";
- case 2:
+ case 1:
return "downloads";
- case 3:
+ case 2:
return "follows";
- case 4:
+ case 3:
return "newest";
- case 5:
+ case 4:
return "updated";
}