mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix intro show condition
This commit is contained in:
parent
3a700643f0
commit
6cc0771974
1 changed files with 3 additions and 3 deletions
|
@ -36,16 +36,16 @@ public class StoreEntryListComp extends SimpleComp {
|
|||
var initialCount = 1;
|
||||
var showIntro = Bindings.createBooleanBinding(
|
||||
() -> {
|
||||
var all = StoreViewState.get().getAllConnectionsCategory();
|
||||
var allCat = StoreViewState.get().getAllConnectionsCategory();
|
||||
var connections = StoreViewState.get().getAllEntries().getList().stream()
|
||||
.filter(wrapper -> all.contains(wrapper))
|
||||
.filter(wrapper -> allCat.equals(wrapper.getCategory().getValue().getRoot()))
|
||||
.toList();
|
||||
return initialCount == connections.size()
|
||||
&& StoreViewState.get()
|
||||
.getActiveCategory()
|
||||
.getValue()
|
||||
.getRoot()
|
||||
.equals(StoreViewState.get().getAllConnectionsCategory());
|
||||
.equals(allCat);
|
||||
},
|
||||
StoreViewState.get().getAllEntries().getList(),
|
||||
StoreViewState.get().getActiveCategory());
|
||||
|
|
Loading…
Reference in a new issue