Commit d77aa98c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Snap doesn't support filter by extensions

parent 7bef4c75
......@@ -72,7 +72,9 @@ static ResultsStream* voidStream() { return new ResultsStream(QStringLiteral("Sn
ResultsStream * SnapBackend::search(const AbstractResourcesBackend::Filters& filters)
{
if (!filters.resourceUrl.isEmpty()) {
if (!filters.extends.isEmpty()) {
return voidStream();
} else if (!filters.resourceUrl.isEmpty()) {
return findResourceByPackageName(filters.resourceUrl);
} else if (filters.category && filters.category->isAddons()) {
return voidStream();
......
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