Improve RSS subsystem initialization

PR #17227.
This commit is contained in:
Vladimir Golovnev 2022-06-18 09:56:49 +03:00 committed by GitHub
parent 7d97905716
commit a2121f2483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 94 additions and 96 deletions

View file

@ -491,7 +491,12 @@ void AutoDownloader::resetProcessingQueue()
void AutoDownloader::startProcessing()
{
resetProcessingQueue();
connect(Session::instance()->rootFolder(), &Folder::newArticle, this, &AutoDownloader::handleNewArticle);
const RSS::Folder *rootFolder = Session::instance()->rootFolder();
for (const Article *article : asConst(rootFolder->articles()))
handleNewArticle(article);
connect(rootFolder, &Folder::newArticle, this, &AutoDownloader::handleNewArticle);
}
void AutoDownloader::setProcessingEnabled(const bool enabled)