Commit 7a4215b7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

kns: Restore the state of the stream after checking for updates

Otherwise they stay lingering forever giving the impression that it's

BUG: 418082
parent d788d4e2
......@@ -152,6 +152,10 @@ KNSBackend::KNSBackend(QObject* parent, const QString& iconName, const QString &
connect(m_engine, &KNSCore::Engine::signalEntryChanged, this, &KNSBackend::statusChanged, Qt::QueuedConnection);
connect(m_engine, &KNSCore::Engine::signalEntryDetailsLoaded, this, &KNSBackend::detailsLoaded);
connect(m_engine, &KNSCore::Engine::signalProvidersLoaded, this, &KNSBackend::fetchInstalled);
connect(m_engine, &KNSCore::Engine::signalUpdateableEntriesLoaded, this, [this] {
m_responsePending = false;
Q_EMIT availableForQueries();
connect(m_engine, &KNSCore::Engine::signalCategoriesMetadataLoded, this, [categories] (const QList<KNSCore::Provider::CategoryMetadata>& categoryMetadatas){
for (const KNSCore::Provider::CategoryMetadata& category : categoryMetadatas) {
for (Category* cat : qAsConst(categories)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment