diff options
| author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-05 19:00:12 +0300 |
|---|---|---|
| committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-05 19:00:12 +0300 |
| commit | 377fc0352a5b573403d5be0731beb84a77951cf6 (patch) | |
| tree | 5f85e1d67aefbb859357bd86b1c4f375f5bc3435 /launcher/ui/widgets | |
| parent | c3eb17db74097c49ab3892a53857dfa24937833b (diff) | |
| parent | 304e294ea701e595b21c0a8a8236ca53828f2b3b (diff) | |
| download | PrismLauncher-377fc0352a5b573403d5be0731beb84a77951cf6.tar.gz PrismLauncher-377fc0352a5b573403d5be0731beb84a77951cf6.tar.bz2 PrismLauncher-377fc0352a5b573403d5be0731beb84a77951cf6.zip | |
Merge branch 'staging' of https://github.com/PrismLauncher/PrismLauncher into icons
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; |
