diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-28 01:16:00 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-28 08:37:45 +0300 |
commit | 97ff7afbe749358728bf4843f1022f2994902ef7 (patch) | |
tree | c89decbf171b6cd39dedb524a9719b84ee43dc1c /launcher/ui/pages/modplatform/legacy_ftb | |
parent | 7e58b965b770ab75c14f2265b7bd7ded081c66b5 (diff) | |
download | PrismLauncher-97ff7afbe749358728bf4843f1022f2994902ef7.tar.gz PrismLauncher-97ff7afbe749358728bf4843f1022f2994902ef7.tar.bz2 PrismLauncher-97ff7afbe749358728bf4843f1022f2994902ef7.zip |
keep the icon suffix
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/legacy_ftb')
-rw-r--r-- | launcher/ui/pages/modplatform/legacy_ftb/ListModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/legacy_ftb/ListModel.cpp b/launcher/ui/pages/modplatform/legacy_ftb/ListModel.cpp index 330dd4fb..1ee6b342 100644 --- a/launcher/ui/pages/modplatform/legacy_ftb/ListModel.cpp +++ b/launcher/ui/pages/modplatform/legacy_ftb/ListModel.cpp @@ -229,7 +229,7 @@ void ListModel::requestLogo(QString file) return; } - MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("FTBPacks", QString("logos/%1").arg(file.section(".", 0, 0))); + MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("FTBPacks", QString("logos/%1").arg(file)); NetJob* job = new NetJob(QString("FTB Icon Download for %1").arg(file), APPLICATION->network()); job->addNetAction(Net::Download::makeCached(QUrl(QString(BuildConfig.LEGACY_FTB_CDN_BASE_URL + "static/%1").arg(file)), entry)); @@ -255,7 +255,7 @@ void ListModel::requestLogo(QString file) void ListModel::getLogo(const QString& logo, LogoCallback callback) { if (m_logoMap.contains(logo)) { - callback(APPLICATION->metacache()->resolveEntry("FTBPacks", QString("logos/%1").arg(logo.section(".", 0, 0)))->getFullPath()); + callback(APPLICATION->metacache()->resolveEntry("FTBPacks", QString("logos/%1").arg(logo))->getFullPath()); } else { requestLogo(logo); } |