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

Don't wait for all backends to be initialized to trigger a query

Backends should be smart enough to take the query regardless of their
state.

BUG: 398746
parent ba9c48cd
......@@ -204,7 +204,7 @@ void DiscoverObject::openCategory(const QString& category)
, this);
if (ResourcesModel::global()->backends().isEmpty()) {
connect(ResourcesModel::global(), &ResourcesModel::allInitialized, action, &OneTimeAction::trigger);
connect(ResourcesModel::global(), &ResourcesModel::backendsChanged, action, &OneTimeAction::trigger);
} else {
action->trigger();
}
......@@ -239,7 +239,7 @@ void DiscoverObject::openLocalPackage(const QUrl& localfile)
, this);
if (ResourcesModel::global()->backends().isEmpty()) {
connect(ResourcesModel::global(), &ResourcesModel::allInitialized, action, &OneTimeAction::trigger);
connect(ResourcesModel::global(), &ResourcesModel::backendsChanged, action, &OneTimeAction::trigger);
} else {
action->trigger();
}
......@@ -267,7 +267,7 @@ void DiscoverObject::openApplication(const QUrl& url)
, this);
if (ResourcesModel::global()->backends().isEmpty()) {
connect(ResourcesModel::global(), &ResourcesModel::allInitialized, action, &OneTimeAction::trigger);
connect(ResourcesModel::global(), &ResourcesModel::backendsChanged, action, &OneTimeAction::trigger);
} else {
action->trigger();
}
......
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