From 896bb0d965f7c6cfe78624dfa7be40d3fe542dea Mon Sep 17 00:00:00 2001 From: Digital Artifex <7929434+DigitalArtifex@users.noreply.github.com> Date: Wed, 12 Aug 2026 03:01:23 -0400 Subject: [PATCH] Minor changes --- KomplexHubPlugin/common/coreservices.cpp | 1 + KomplexHubPlugin/common/shaderpack.h | 5 ++--- KomplexHubPlugin/downloadmanager.cpp | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/KomplexHubPlugin/common/coreservices.cpp b/KomplexHubPlugin/common/coreservices.cpp index 4559ccc..ea26574 100644 --- a/KomplexHubPlugin/common/coreservices.cpp +++ b/KomplexHubPlugin/common/coreservices.cpp @@ -12,6 +12,7 @@ auto CoreServices::networkAccessManager() -> QWeakPointer if(!s_networkAccessPointer) { s_networkAccessManager = new QNetworkAccessManager; + s_networkAccessManager->setAutoDeleteReplies(true); QObject::connect( s_networkAccessManager, diff --git a/KomplexHubPlugin/common/shaderpack.h b/KomplexHubPlugin/common/shaderpack.h index 9b8bd5a..ab2f179 100644 --- a/KomplexHubPlugin/common/shaderpack.h +++ b/KomplexHubPlugin/common/shaderpack.h @@ -372,7 +372,7 @@ private: Q_PROPERTY(ShaderChannel *channel1 READ channel1 WRITE setChannel1 NOTIFY channel1Changed FINAL) Q_PROPERTY(ShaderChannel *channel2 READ channel2 WRITE setChannel2 NOTIFY channel2Changed FINAL) Q_PROPERTY(ShaderChannel *channel3 READ channel3 WRITE setChannel3 NOTIFY channel3Changed FINAL) - Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged FINAL) + Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged FINAL) Q_PROPERTY(Type type READ type WRITE setType NOTIFY typeChanged FINAL) Q_PROPERTY(MirrorMode mirrorMode READ mirrorMode WRITE setMirrorMode NOTIFY mirrorModeChanged FINAL) Q_PROPERTY(TextureRepeat textureRepeat READ textureRepeat WRITE setTextureRepeat NOTIFY textureRepeatChanged FINAL) @@ -516,14 +516,13 @@ public: rootObject[QStringLiteral("license")] = license(); QJsonObject bufferObject = bufferJson(this); - QJsonObject channelObject = channelJson(this); - const QStringList bufferKeys = bufferObject.keys(); for(const QString &key : bufferKeys) { rootObject[key] = bufferObject[key]; } + QJsonObject channelObject = channelJson(this); const QStringList channelKeys = channelObject.keys(); for(const QString &key : channelKeys) { diff --git a/KomplexHubPlugin/downloadmanager.cpp b/KomplexHubPlugin/downloadmanager.cpp index 0b1aa10..599daf3 100644 --- a/KomplexHubPlugin/downloadmanager.cpp +++ b/KomplexHubPlugin/downloadmanager.cpp @@ -1,8 +1,7 @@ #include "downloadmanager.h" #include "common/coreservices.h" #include "common/exceptions.h" -#include "common/logging.h" -#include "common/ShaderPack.h" +#include "common/shaderpack.h" DownloadManager::DownloadManager(QObject *parent) : QObject{parent} @@ -47,7 +46,6 @@ auto DownloadManager::downloadImage(const QString &author, const QString &author [this, url, author, authorId, description]() { QNetworkRequest request(url); - QUrl localUri; QString id = QUuid::createUuidV7().toString(QUuid::WithoutBraces); QFuture downloadUri = download(request, id);