From ce2f20e76fabd567bed79182d10047137c51e829 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 18 Aug 2023 09:45:11 +0300 Subject: [PATCH] replaced Download with APIDownload Signed-off-by: Trial97 --- launcher/InstanceImportTask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index 97802ce18..a4d07ef53 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -55,6 +55,8 @@ #include "tasks/MultipleOptionsTask.h" #include "tasks/Task.h" +#include "net/ApiDownload.h" + #include #include #include @@ -97,7 +99,7 @@ void InstanceImportTask::downloadFromUrl() m_archivePath = entry->getFullPath(); auto filesNetJob = makeShared(tr("Modpack download"), APPLICATION->network()); - filesNetJob->addNetAction(Net::Download::makeCached(m_sourceUrl, entry)); + filesNetJob->addNetAction(Net::ApiDownload::makeCached(m_sourceUrl, entry)); connect(filesNetJob.get(), &NetJob::succeeded, this, &InstanceImportTask::processExtraInfoPack); connect(filesNetJob.get(), &NetJob::progress, this, &InstanceImportTask::setProgress);