diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-04 20:31:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 20:31:43 +0200 |
commit | 304e294ea701e595b21c0a8a8236ca53828f2b3b (patch) | |
tree | 66770810d344120899cf8ba07f279bac784f4877 /launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp | |
parent | 50c7d39e082f0a7dbd977401e16d5adf534d9770 (diff) | |
parent | f19e8dd086cd046c694a4a9a02d83827b08952b0 (diff) | |
download | PrismLauncher-304e294ea701e595b21c0a8a8236ca53828f2b3b.tar.gz PrismLauncher-304e294ea701e595b21c0a8a8236ca53828f2b3b.tar.bz2 PrismLauncher-304e294ea701e595b21c0a8a8236ca53828f2b3b.zip |
Merge pull request #1102 from Ryex/refactor/net-split-headers-to-proxy-class
Diffstat (limited to 'launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp b/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp index c6b087d6..0f18fdfb 100644 --- a/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp +++ b/launcher/ui/pages/modplatform/atlauncher/AtlListModel.cpp @@ -20,6 +20,8 @@ #include <BuildConfig.h> #include <Json.h> +#include "net/ApiDownload.h" + namespace Atl { ListModel::ListModel(QObject* parent) : QAbstractListModel(parent) {} @@ -75,7 +77,7 @@ void ListModel::request() auto netJob = makeShared<NetJob>("Atl::Request", APPLICATION->network()); auto url = QString(BuildConfig.ATL_DOWNLOAD_SERVER_URL + "launcher/json/packsnew.json"); - netJob->addNetAction(Net::Download::makeByteArray(QUrl(url), response)); + netJob->addNetAction(Net::ApiDownload::makeByteArray(QUrl(url), response)); jobPtr = netJob; jobPtr->start(); @@ -170,7 +172,7 @@ void ListModel::requestLogo(QString file, QString url) MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("ATLauncherPacks", QString("logos/%1").arg(file.section(".", 0, 0))); auto job = new NetJob(QString("ATLauncher Icon Download %1").arg(file), APPLICATION->network()); - job->addNetAction(Net::Download::makeCached(QUrl(url), entry)); + job->addNetAction(Net::ApiDownload::makeCached(QUrl(url), entry)); auto fullPath = entry->getFullPath(); QObject::connect(job, &NetJob::succeeded, this, [this, file, fullPath, job] { |