diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:21:12 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:21:12 +0100 |
commit | 69213b1206e97f7d4db4270a4b3b0af41dc9e6fc (patch) | |
tree | b53ca69422ce22cceee9e648171a678679075c1a /launcher/notifications | |
parent | c2c56a2f6ceaedb8a3fa88c848b345db0fec7f9c (diff) | |
download | PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.tar.gz PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.tar.bz2 PrismLauncher-69213b1206e97f7d4db4270a4b3b0af41dc9e6fc.zip |
NOISSUE continue refactoring things to make tests pass
Diffstat (limited to 'launcher/notifications')
-rw-r--r-- | launcher/notifications/NotificationChecker.cpp | 6 | ||||
-rw-r--r-- | launcher/notifications/NotificationChecker.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/launcher/notifications/NotificationChecker.cpp b/launcher/notifications/NotificationChecker.cpp index 4ccd3d6c..00c918f8 100644 --- a/launcher/notifications/NotificationChecker.cpp +++ b/launcher/notifications/NotificationChecker.cpp @@ -5,9 +5,9 @@ #include <QJsonArray> #include <QDebug> -#include "Env.h" #include "net/Download.h" +#include "Application.h" NotificationChecker::NotificationChecker(QObject *parent) : QObject(parent) @@ -53,11 +53,11 @@ void NotificationChecker::checkForNotifications() return; } m_checkJob.reset(new NetJob("Checking for notifications")); - auto entry = ENV->metacache()->resolveEntry("root", "notifications.json"); + auto entry = APPLICATION->metacache()->resolveEntry("root", "notifications.json"); entry->setStale(true); m_checkJob->addNetAction(m_download = Net::Download::makeCached(m_notificationsUrl, entry)); connect(m_download.get(), &Net::Download::succeeded, this, &NotificationChecker::downloadSucceeded); - m_checkJob->start(); + m_checkJob->start(APPLICATION->network()); } void NotificationChecker::downloadSucceeded(int) diff --git a/launcher/notifications/NotificationChecker.h b/launcher/notifications/NotificationChecker.h index eb2b32a2..0f305f33 100644 --- a/launcher/notifications/NotificationChecker.h +++ b/launcher/notifications/NotificationChecker.h @@ -52,7 +52,7 @@ private: private: QList<NotificationEntry> m_entries; QUrl m_notificationsUrl; - NetJobPtr m_checkJob; + NetJob::Ptr m_checkJob; Net::Download::Ptr m_download; QString m_appVersionChannel; |