mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-24 08:30:27 +00:00
Improve search filtering
This commit is contained in:
parent
435c157eb9
commit
8f78a08e6f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue