fix: download icon as well when importing modrinth modpacks
This commit is contained in:
parent
4fda35b466
commit
9dd70ca9ae
@ -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;
|
||||
}
|
||||
|
@ -45,6 +45,9 @@
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="uniformItemSizes">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user