fix qt5 lwjgl recommend + spelling

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2024-06-24 17:28:42 -07:00
parent a94a081b9c
commit cf319649f9
No known key found for this signature in database
GPG Key ID: E10E321EB160949B
3 changed files with 7 additions and 7 deletions

View File

@ -180,12 +180,12 @@ void VersionList::parse(const QJsonObject& obj)
parseVersionList(obj, this);
}
void VersionList::addExternalRecomends(const QVector<QString>& recomends)
void VersionList::addExternalRecommends(const QStringList& recommends)
{
m_externalRecommendsVersions.append(recomends);
m_externalRecommendsVersions.append(recommends);
}
void VersionList::clearExternalRecomends()
void VersionList::clearExternalRecommends()
{
m_externalRecommendsVersions.clear();
}

View File

@ -71,8 +71,8 @@ class VersionList : public BaseVersionList, public BaseEntity {
void merge(const VersionList::Ptr& other);
void mergeFromIndex(const VersionList::Ptr& other);
void parse(const QJsonObject& obj) override;
void addExternalRecomends(const QVector<QString>& recomends);
void clearExternalRecomends();
void addExternalRecommends(const QStringList& recommends);
void clearExternalRecommends();
signals:
void nameChanged(const QString& name);

View File

@ -370,7 +370,7 @@ void VersionPage::on_actionChange_version_triggered()
auto patch = m_profile->getComponent(versionRow);
auto name = patch->getName();
auto list = patch->getVersionList();
list->clearExternalRecomends();
list->clearExternalRecommends();
if (!list) {
return;
}
@ -384,7 +384,7 @@ void VersionPage::on_actionChange_version_triggered()
if (lwjglReq != minecraft->m_cachedRequires.cend()) {
auto lwjglVersion = !lwjglReq->equalsVersion.isEmpty() ? lwjglReq->equalsVersion : lwjglReq->suggests;
if (!lwjglVersion.isEmpty()) {
list->addExternalRecomends({ lwjglVersion });
list->addExternalRecommends({ lwjglVersion });
}
}
}