diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-05 22:50:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 22:50:52 +0200 |
commit | 5b8c997180ac1d7eaab8d862a90846d2c0207642 (patch) | |
tree | 5f85e1d67aefbb859357bd86b1c4f375f5bc3435 /launcher/ui/pages/modplatform/technic/TechnicPage.cpp | |
parent | 304e294ea701e595b21c0a8a8236ca53828f2b3b (diff) | |
parent | 377fc0352a5b573403d5be0731beb84a77951cf6 (diff) | |
download | PrismLauncher-5b8c997180ac1d7eaab8d862a90846d2c0207642.tar.gz PrismLauncher-5b8c997180ac1d7eaab8d862a90846d2c0207642.tar.bz2 PrismLauncher-5b8c997180ac1d7eaab8d862a90846d2c0207642.zip |
Merge pull request #1456 from Trial97/icons
Diffstat (limited to 'launcher/ui/pages/modplatform/technic/TechnicPage.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/technic/TechnicPage.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp index 7ac388a0..e066fa6f 100644 --- a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp +++ b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp @@ -131,14 +131,11 @@ void TechnicPage::suggestCurrent() return; } - QString editedLogoName = "technic_" + current.logoName.section(".", 0, 0); - model->getLogo(current.logoName, current.logoUrl, [this, editedLogoName](QString logo) - { - dialog->setSuggestedIconFromFile(logo, editedLogoName); - }); + QString editedLogoName = "technic_" + current.logoName; + model->getLogo(current.logoName, current.logoUrl, + [this, editedLogoName](QString logo) { dialog->setSuggestedIconFromFile(logo, editedLogoName); }); - if (current.metadataLoaded) - { + if (current.metadataLoaded) { metadataLoaded(); return; } |