From 34794cc4af5655021b43291c61ad94f7116a3c27 Mon Sep 17 00:00:00 2001 From: flow Date: Sat, 12 Nov 2022 12:49:03 -0300 Subject: [PATCH] fix(ManagedPackPage): give extra_info to InstanceImportTask in MR packs Signed-off-by: flow --- launcher/ui/pages/instance/ManagedPackPage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp index c72b554d..f00a2bdd 100644 --- a/launcher/ui/pages/instance/ManagedPackPage.cpp +++ b/launcher/ui/pages/instance/ManagedPackPage.cpp @@ -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 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));