fix(ManagedPackPage): give extra_info to InstanceImportTask in MR packs
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
38f59fdf39
commit
34794cc4af
@ -246,7 +246,11 @@ void ModrinthManagedPackPage::update()
|
||||
auto index = ui->versionsComboBox->currentIndex();
|
||||
auto version = m_pack.versions.at(index);
|
||||
|
||||
auto extracted = new InstanceImportTask(version.download_url, this);
|
||||
QMap<QString, QString> extra_info;
|
||||
extra_info.insert("pack_id", m_pack.id);
|
||||
extra_info.insert("pack_version_id", version.id);
|
||||
|
||||
auto extracted = new InstanceImportTask(version.download_url, this, extra_info);
|
||||
|
||||
InstanceName inst_name(m_inst->getManagedPackName(), version.version);
|
||||
inst_name.setName(m_inst->name().replace(m_inst->getManagedPackVersionName(), version.version));
|
||||
|
Loading…
Reference in New Issue
Block a user