fix(ModrinthPackIndex): set logo name correctly (#4356)

This commit is contained in:
TheKodeToad 2025-11-15 18:50:51 +00:00 committed by GitHub
commit 16066c9a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ void Modrinth::loadIndexedPack(ModPlatform::IndexedPack& pack, QJsonObject& obj)
pack.description = obj["description"].toString("");
pack.logoUrl = obj["icon_url"].toString("");
pack.logoName = QString("%1.%2").arg(obj["slug"].toString()), QFileInfo(QUrl(pack.logoUrl).fileName()).suffix();
pack.logoName = QString("%1.%2").arg(obj["slug"].toString(), QFileInfo(QUrl(pack.logoUrl).fileName()).suffix());
if (obj.contains("author")) {
ModPlatform::ModpackAuthor modAuthor;