Cheats dont show other authors (#2558)

This commit is contained in:
DanielSvoboda 2025-02-28 03:33:50 -03:00 committed by GitHub
parent 5e5ca2138e
commit bf995d659b
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);