diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 20:38:32 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 20:38:32 +0200 |
commit | ef6f9487f48ee6f114d47108977380fb4c278597 (patch) | |
tree | 57945b096640c87a976223daace6ecc27613d4c1 /launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp | |
parent | 81bc9e488f653eba3e29d63b51c95f73f03ad182 (diff) | |
parent | 2090f958c8d1940238fe08f98eee2145edb12906 (diff) | |
download | PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.tar.gz PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.tar.bz2 PrismLauncher-ef6f9487f48ee6f114d47108977380fb4c278597.zip |
Merge remote-tracking branch 'upstream/staging' into chore/add-compiler-warnings
Diffstat (limited to 'launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp b/launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp index 289173e1..d9f3274d 100644 --- a/launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp +++ b/launcher/ui/pages/modplatform/atlauncher/AtlOptionalModDialog.cpp @@ -43,6 +43,8 @@ #include "modplatform/atlauncher/ATLShareCode.h" #include "Application.h" +#include "net/ApiDownload.h" + AtlOptionalModListModel::AtlOptionalModListModel(QWidget* parent, ATLauncher::PackVersion version, QVector<ATLauncher::VersionMod> mods) : QAbstractListModel(parent) , m_version(version) @@ -152,7 +154,7 @@ Qt::ItemFlags AtlOptionalModListModel::flags(const QModelIndex &index) const { void AtlOptionalModListModel::useShareCode(const QString& code) { m_jobPtr.reset(new NetJob("Atl::Request", APPLICATION->network())); auto url = QString(BuildConfig.ATL_API_BASE_URL + "share-codes/" + code); - m_jobPtr->addNetAction(Net::Download::makeByteArray(QUrl(url), m_response)); + m_jobPtr->addNetAction(Net::ApiDownload::makeByteArray(QUrl(url), m_response)); connect(m_jobPtr.get(), &NetJob::succeeded, this, &AtlOptionalModListModel::shareCodeSuccess); |