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) {
|
for (auto& ver : current.versions) {
|
||||||
if (ver.id == selectedVersion) {
|
if (ver.id == selectedVersion) {
|
||||||
dialog->setSuggestedPack(current.name, new InstanceImportTask(ver.download_url));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
<height>48</height>
|
<height>48</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="uniformItemSizes">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user