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/widgets | |
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/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; |