replaced Download with APIDownload

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-08-18 09:45:11 +03:00
parent d6a926daba
commit ce2f20e76f
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -55,6 +55,8 @@
#include "tasks/MultipleOptionsTask.h"
#include "tasks/Task.h"
#include "net/ApiDownload.h"
#include <QtConcurrentRun>
#include <algorithm>
#include <memory>
@ -97,7 +99,7 @@ void InstanceImportTask::downloadFromUrl()
m_archivePath = entry->getFullPath();
auto filesNetJob = makeShared<NetJob>(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);