aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
diff options
context:
space:
mode:
authortimoreo22 <timo.oreo34@gmail.com>2022-06-30 08:24:51 +0200
committerGitHub <noreply@github.com>2022-06-30 08:24:51 +0200
commited5415aeb87ca2ef1ab5094caf95b3f3f6e7b7b1 (patch)
treed621799aa08da9980118614a2e2fc4b7ba98bcb2 /launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
parent774ed044fcac9c444f41e0f93435089338e8366c (diff)
parent04e8780dd088e500fb2d22564b4bb83b1640c14a (diff)
downloadPrismLauncher-ed5415aeb87ca2ef1ab5094caf95b3f3f6e7b7b1.tar.gz
PrismLauncher-ed5415aeb87ca2ef1ab5094caf95b3f3f6e7b7b1.tar.bz2
PrismLauncher-ed5415aeb87ca2ef1ab5094caf95b3f3f6e7b7b1.zip
Merge pull request #837 from DioEgizio/fix-sort-mr
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp')
-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";
}