aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/VariableSizedImageObject.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 10:36:09 +0200
committerGitHub <noreply@github.com>2023-08-15 10:36:09 +0200
commit4b06255cc26933379107745d95f72097737d2a9b (patch)
tree60e00c8389bb2d8e4be492531beb788a253d1b6a /launcher/ui/widgets/VariableSizedImageObject.cpp
parent3aba7f8fec45c7c87be486d8f6b5c96f69facf93 (diff)
parent1939e3e6ed3d2d2d4199d90154333cc8892eafeb (diff)
downloadPrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.gz
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.bz2
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.zip
Merge pull request #1486 from PrismLauncher/staging
Diffstat (limited to 'launcher/ui/widgets/VariableSizedImageObject.cpp')
-rw-r--r--launcher/ui/widgets/VariableSizedImageObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/widgets/VariableSizedImageObject.cpp b/launcher/ui/widgets/VariableSizedImageObject.cpp
index 4daf513a..f655fc38 100644
--- a/launcher/ui/widgets/VariableSizedImageObject.cpp
+++ b/launcher/ui/widgets/VariableSizedImageObject.cpp
@@ -25,6 +25,7 @@
#include "Application.h"
+#include "net/ApiDownload.h"
#include "net/NetJob.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;