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
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
2 changed files with 1 additions and 6 deletions

View file

@ -39,7 +39,6 @@ struct JavaInstall : public BaseVersion {
JavaVersion id;
QString arch;
QString path;
bool recommended = false;
bool is_64bit = false;
};

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