mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 23:50:32 +00:00
Better filter for store tree view
This commit is contained in:
parent
1f8f078523
commit
b16cb3ee59
2 changed files with 13 additions and 1 deletions
|
@ -40,6 +40,14 @@ public class StoreEntryFlatMiniSectionComp extends SimpleComp {
|
|||
}
|
||||
|
||||
private static void add(int depth, StoreSection section) {
|
||||
if (!section.getWrapper().getState().getValue().isUsable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!section.getWrapper().getEntry().getProvider().shouldShowInSelectionTree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ALL.add(new StoreEntryFlatMiniSectionComp(depth, section.getWrapper().getEntry()));
|
||||
for (StoreSection child : section.getChildren()) {
|
||||
add(depth + 1, child);
|
||||
|
|
|
@ -26,7 +26,11 @@ public class StoreEntryTree {
|
|||
}
|
||||
|
||||
private static void add(TreeItem<StoreEntryWrapper> parent, StoreSection section) {
|
||||
if (section.getWrapper().getEntry().getState().isUsable() && !section.getWrapper().getEntry().getProvider().shouldShowInSelectionTree()) {
|
||||
if (!section.getWrapper().getEntry().getState().isUsable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!section.getWrapper().getEntry().getProvider().shouldShowInSelectionTree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue