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

More on missing backends

Remove unneeded logic on the delegate
Fix filtering condition
parent bd1125f6
......@@ -246,7 +246,6 @@ DiscoverPage {
}
delegate: Kirigami.BasicListItem {
supportsMouseEvents: false
visible: !model.isInstalled
label: name
icon: model.icon
InstallApplicationButton {
......
......@@ -109,8 +109,9 @@ bool AbstractResourcesBackend::Filters::shouldFilter(AbstractResource* res) cons
return false;
}
if(filterMinimumState ? res->state() < state : res->state() == state)
if(filterMinimumState ? (res->state() < state) : (res->state() != state)) {
return false;
}
if(!mimetype.isEmpty() && !res->mimetypes().contains(mimetype)) {
return false;
......
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