diff options
author | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2022-06-24 10:47:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 10:47:02 +0200 |
commit | 04e8780dd088e500fb2d22564b4bb83b1640c14a (patch) | |
tree | ebc0091e89e0570fced0d0c66bf29c8fb385f3cc /launcher/ui/pages/modplatform | |
parent | 821edf0f51776155a68a74a310ee7d03b8ea2c71 (diff) | |
download | PrismLauncher-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.cpp | 10 |
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"; } |