NOISSUE fix build and change how NetJob is used
Feed it network upfront...
This commit is contained in:
parent
9cc168c526
commit
9579231ccc
31 changed files with 103 additions and 113 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue