Cheats dont show other authors

This commit is contained in:
DanielSvoboda 2025-02-28 01:32:16 -03:00 committed by GitHub
parent 63b50ff92c
commit 5713064401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1082,7 +1082,11 @@ void CheatsPatches::addCheatsToLayout(const QJsonArray& modsArray, const QJsonAr
QLabel* creditsLabel = new QLabel();
QString creditsText = tr("Author: ");
if (!creditsArray.isEmpty()) {
creditsText += creditsArray[0].toString();
QStringList authors;
for (const QJsonValue& credit : creditsArray) {
authors << credit.toString();
}
creditsText += authors.join(", ");
}
creditsLabel->setText(creditsText);
creditsLabel->setAlignment(Qt::AlignLeft);