diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-01 16:39:04 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-25 11:09:25 -0700 |
commit | 9c10965997d873b0de56deef5d5ec5e768db1d8f (patch) | |
tree | 6be0af4993dcdc5d6634e2c8658ec71acbe72693 /launcher/ui/widgets | |
parent | af6bf11793fb463fe62c99695e56ff6599612d05 (diff) | |
download | PrismLauncher-9c10965997d873b0de56deef5d5ec5e768db1d8f.tar.gz PrismLauncher-9c10965997d873b0de56deef5d5ec5e768db1d8f.tar.bz2 PrismLauncher-9c10965997d873b0de56deef5d5ec5e768db1d8f.zip |
refactor: split out setting api headers for downloads
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r-- | launcher/ui/widgets/VariableSizedImageObject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/widgets/VariableSizedImageObject.cpp b/launcher/ui/widgets/VariableSizedImageObject.cpp index 991b4a04..3aa3343d 100644 --- a/launcher/ui/widgets/VariableSizedImageObject.cpp +++ b/launcher/ui/widgets/VariableSizedImageObject.cpp @@ -26,6 +26,7 @@ #include "Application.h" #include "net/NetJob.h" +#include "net/ApiDownload.h" enum FormatProperties { ImageData = QTextFormat::UserProperty + 1 }; @@ -97,7 +98,7 @@ void VariableSizedImageObject::loadImage(QTextDocument* doc, const QUrl& source, QString("images/%1").arg(QString(QCryptographicHash::hash(source.toEncoded(), QCryptographicHash::Algorithm::Sha1).toHex()))); auto job = new NetJob(QString("Load Image: %1").arg(source.fileName()), APPLICATION->network()); - job->addNetAction(Net::Download::makeCached(source, entry)); + job->addNetAction(Net::ApiDownload::makeCached(source, entry)); auto full_entry_path = entry->getFullPath(); auto source_url = source; |