Improve search filtering

This commit is contained in:
crschnick 2024-06-02 13:37:31 +00:00
parent 435c157eb9
commit 8f78a08e6f

View file

@ -144,7 +144,6 @@ public class StoreSection {
var filtered = ListBindingsHelper.filteredContentBinding(
ordered,
section -> {
var showFilter = filterString == null || section.shouldShow(filterString.get());
var matchesSelector = section.anyMatches(entryFilter);
var sameCategory = category == null
|| category.getValue() == null
@ -153,7 +152,7 @@ public class StoreSection {
// again here
var notRoot =
!DataStorage.get().isRootEntry(section.getWrapper().getEntry());
return showFilter && matchesSelector && sameCategory && notRoot;
return matchesSelector && sameCategory && notRoot;
},
category,
filterString);