diff options
author | seth <getchoo@tuta.io> | 2023-06-16 14:47:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 14:47:39 -0400 |
commit | fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0 (patch) | |
tree | 3f1fc1c41935a7ac5e6c20625f3eba2eaec80b80 /launcher/java | |
parent | 6bc1150ad0c154a8591aaaccf15309463f1d009d (diff) | |
parent | b7d82354cbf4d13c428555c5625db183dffd15d7 (diff) | |
download | PrismLauncher-fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0.tar.gz PrismLauncher-fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0.tar.bz2 PrismLauncher-fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0.zip |
Merge pull request #1110 from TheKodeToad/version-search
Add a search bar to version lists
Diffstat (limited to 'launcher/java')
-rw-r--r-- | launcher/java/JavaInstallList.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/java/JavaInstallList.cpp b/launcher/java/JavaInstallList.cpp index b29af857..3407fdf7 100644 --- a/launcher/java/JavaInstallList.cpp +++ b/launcher/java/JavaInstallList.cpp @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-3.0-only /* - * PolyMC - Minecraft Launcher + * Prism Launcher - Minecraft Launcher * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> + * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -98,6 +99,8 @@ QVariant JavaInstallList::data(const QModelIndex &index, int role) const auto version = std::dynamic_pointer_cast<JavaInstall>(m_vlist[index.row()]); switch (role) { + case SortRole: + return -index.row(); case VersionPointerRole: return QVariant::fromValue(m_vlist[index.row()]); case VersionIdRole: |