aboutsummaryrefslogtreecommitdiff
path: root/launcher/notifications
diff options
context:
space:
mode:
authorswirl <roachh@protonmail.com>2021-12-31 14:27:21 -0500
committerGitHub <noreply@github.com>2021-12-31 14:27:21 -0500
commit541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa (patch)
tree5a300af57c0207d38980319d54dc04218828aa1e /launcher/notifications
parent0c177b1086d69993e012ba1fbed1adf6bfe04144 (diff)
parentfa98ed3ccd74cbf0228baf13851b6bb6d17d51a3 (diff)
downloadPrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.gz
PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.tar.bz2
PrismLauncher-541e2f0d8d56b1e808ac98b6cf5b3600f324f2fa.zip
Merge pull request #8 from dada513/upstream_update
Diffstat (limited to 'launcher/notifications')
-rw-r--r--launcher/notifications/NotificationChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/notifications/NotificationChecker.cpp b/launcher/notifications/NotificationChecker.cpp
index 00c918f8..c08bcdcb 100644
--- a/launcher/notifications/NotificationChecker.cpp
+++ b/launcher/notifications/NotificationChecker.cpp
@@ -52,12 +52,12 @@ void NotificationChecker::checkForNotifications()
{
return;
}
- m_checkJob.reset(new NetJob("Checking for notifications"));
+ m_checkJob = new NetJob("Checking for notifications", APPLICATION->network());
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(APPLICATION->network());
+ m_checkJob->start();
}
void NotificationChecker::downloadSucceeded(int)