fix: download icon as well when importing modrinth modpacks

This commit is contained in:
flow 2022-05-14 20:26:20 -03:00
parent 4fda35b466
commit 9dd70ca9ae
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 6 additions and 0 deletions

View File

@ -253,6 +253,9 @@ void ModrinthPage::suggestCurrent()
for (auto& ver : current.versions) {
if (ver.id == selectedVersion) {
dialog->setSuggestedPack(current.name, new InstanceImportTask(ver.download_url));
auto iconName = current.iconName;
m_model->getLogo(iconName, current.iconUrl.toString(),
[this, iconName](QString logo) { dialog->setSuggestedIconFromFile(logo, iconName); });
break;
}

View File

@ -45,6 +45,9 @@
<height>48</height>
</size>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
</widget>
</item>
<item>