Commit 48ff95b8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix --categories with delayed categories

Wait for categories when requesting categories
parent 094c9d94
......@@ -214,13 +214,13 @@ void DiscoverObject::openCategory(const QString& category)
emit listCategoryInternal(cat);
} else {
showPassiveNotification(i18n("Could not find category '%1'", category));
setRootObjectProperty("defaultStartup", false);
setRootObjectProperty("defaultStartup", true);
, this);
if (ResourcesModel::global()->backends().isEmpty()) {
connect(ResourcesModel::global(), &ResourcesModel::backendsChanged, action, &OneTimeAction::trigger);
if (CategoryModel::global()->rootCategories().isEmpty()) {
connect(CategoryModel::global(), &CategoryModel::rootCategoriesChanged, action, &OneTimeAction::trigger);
} else {
Markdown is supported
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