From b410d8e8632f934db79578d82e68fb4e39ea2538 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 25 Oct 2023 15:38:57 +0000 Subject: [PATCH] Small bug fixes --- .../main/java/io/xpipe/app/comp/store/StoreEntryListComp.java | 4 ++-- app/src/main/java/io/xpipe/app/core/AppMainWindow.java | 1 + .../io/xpipe/app/resources/lang/translations_en.properties | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryListComp.java b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryListComp.java index a54335b71..dd8fe4962 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryListComp.java +++ b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryListComp.java @@ -36,9 +36,9 @@ public class StoreEntryListComp extends SimpleComp { () -> { var all = StoreViewState.get().getAllConnectionsCategory(); var connections = StoreViewState.get().getAllEntries().stream().filter(wrapper -> all.contains(wrapper.getEntry())).toList(); - return initialCount == connections.size(); + return initialCount == connections.size() && StoreViewState.get().getActiveCategory().getValue().getRoot().equals(StoreViewState.get().getAllConnectionsCategory()); }, - StoreViewState.get().getAllEntries()); + StoreViewState.get().getAllEntries(), StoreViewState.get().getActiveCategory()); var map = new LinkedHashMap, ObservableValue>(); map.put( createList(), diff --git a/app/src/main/java/io/xpipe/app/core/AppMainWindow.java b/app/src/main/java/io/xpipe/app/core/AppMainWindow.java index 30c2c2314..1c35d14ec 100644 --- a/app/src/main/java/io/xpipe/app/core/AppMainWindow.java +++ b/app/src/main/java/io/xpipe/app/core/AppMainWindow.java @@ -240,6 +240,7 @@ public class AppMainWindow { stage.show(); // Due to some weird GTK bug, we have to set these sizes every time we show a window even though they have been previously set + // This does not work every time however stage.setX(stage.getX()); stage.setY(stage.getY()); stage.setWidth(stage.getWidth()); diff --git a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties index 8dec31d00..f6cf6070a 100644 --- a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties +++ b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties @@ -57,7 +57,7 @@ alacritty=Alacritty tilda=Tilda xterm=XTerm deepinTerminal=Deepin Terminal -qterminal=QTerminal +qTerminal=QTerminal recent=Recent hostFeatureUnsupported=$FEATURE$ is not installed on the host missingStore=$NAME$ does not exist