mirror of https://github.com/KDE/kasts.git
Show BusyIndicator on newly added feeds until they have finished updating
This commit is contained in:
parent
86327a98d8
commit
9c83ee08e8
|
@ -34,8 +34,11 @@ DataManager::DataManager()
|
|||
feed->setLastUpdated(lastUpdated);
|
||||
// qDebug() << "Retrieving authors";
|
||||
feed->updateAuthors();
|
||||
// TODO: signal feedmodel: Q_EMIT dataChanged(createIndex(i, 0), createIndex(i, 0));
|
||||
// quite sure that this is actually not needed
|
||||
// For feeds that have just been added, this is probably the point
|
||||
// where the Feed object gets created; let's set refreshing to
|
||||
// true in order to show user feedback that the feed is still
|
||||
// being fetched
|
||||
feed->setRefreshing(true);
|
||||
}
|
||||
});
|
||||
connect(&Fetcher::instance(), &Fetcher::entryAdded, this, [this](const QString &feedurl, const QString &id) {
|
||||
|
|
|
@ -50,7 +50,6 @@ Feed::Feed(const QString &feedurl)
|
|||
});
|
||||
connect(&DataManager::instance(), &DataManager::feedEntriesUpdated, this, [this](const QString &url) {
|
||||
if (url == m_url) {
|
||||
setRefreshing(false);
|
||||
Q_EMIT entryCountChanged();
|
||||
Q_EMIT unreadEntryCountChanged();
|
||||
setErrorId(0);
|
||||
|
|
|
@ -189,7 +189,7 @@ void Fetcher::processFeed(Syndication::FeedPtr feed, const QString &url)
|
|||
query.bindValue(QStringLiteral(":image"), image);
|
||||
Database::instance().execute(query);
|
||||
|
||||
qDebug() << "Updated feed:" << feed->title();
|
||||
qDebug() << "Updated feed details:" << feed->title();
|
||||
|
||||
Q_EMIT feedDetailsUpdated(url, feed->title(), image, feed->link(), feed->description(), current);
|
||||
|
||||
|
|
Loading…
Reference in New Issue