mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Stop showing a star on the oldest java
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit 3c076bfcf6)
This commit is contained in:
parent
e8e127ee27
commit
dc2b29529c
2 changed files with 1 additions and 6 deletions
|
|
@ -108,7 +108,7 @@ QVariant JavaInstallList::data(const QModelIndex& index, int role) const
|
|||
case VersionRole:
|
||||
return version->id.toString();
|
||||
case RecommendedRole:
|
||||
return version->recommended;
|
||||
return false;
|
||||
case PathRole:
|
||||
return version->path;
|
||||
case CPUArchitectureRole:
|
||||
|
|
@ -128,10 +128,6 @@ void JavaInstallList::updateListData(QList<BaseVersion::Ptr> versions)
|
|||
beginResetModel();
|
||||
m_vlist = versions;
|
||||
sortVersions();
|
||||
if (m_vlist.size()) {
|
||||
auto best = std::dynamic_pointer_cast<JavaInstall>(m_vlist[0]);
|
||||
best->recommended = true;
|
||||
}
|
||||
endResetModel();
|
||||
m_status = Status::Done;
|
||||
m_load_task.reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue