Stop showing a star on the oldest java

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2026-02-18 12:40:36 +00:00
parent 4a46726cc9
commit 3c076bfcf6
2 changed files with 1 additions and 6 deletions

View File

@@ -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();