From 1ff39b2182fb808ea463220d7bb011b819e42359 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 27 Jun 2024 06:28:23 +0000 Subject: [PATCH] Small fixes [stage] --- .../xpipe/app/comp/base/SideMenuBarComp.java | 20 +++++++++---------- .../ext/base/service/FixedServiceStore.java | 7 +++++++ version | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/comp/base/SideMenuBarComp.java b/app/src/main/java/io/xpipe/app/comp/base/SideMenuBarComp.java index 9ea741ba4..06ce86128 100644 --- a/app/src/main/java/io/xpipe/app/comp/base/SideMenuBarComp.java +++ b/app/src/main/java/io/xpipe/app/comp/base/SideMenuBarComp.java @@ -146,16 +146,16 @@ public class SideMenuBarComp extends Comp> { vbox.getChildren().add(b.createRegion()); } - { - var b = new IconButtonComp("mdi2t-translate", () -> Hyperlinks.open(Hyperlinks.TRANSLATE)) - .tooltipKey("translate") - .apply(simpleBorders) - .accessibleTextKey("translate"); - b.apply(struc -> { - AppFont.setSize(struc.get(), 2); - }); - vbox.getChildren().add(b.createRegion()); - } +// { +// var b = new IconButtonComp("mdi2t-translate", () -> Hyperlinks.open(Hyperlinks.TRANSLATE)) +// .tooltipKey("translate") +// .apply(simpleBorders) +// .accessibleTextKey("translate"); +// b.apply(struc -> { +// AppFont.setSize(struc.get(), 2); +// }); +// vbox.getChildren().add(b.createRegion()); +// } { var b = new IconButtonComp( diff --git a/ext/base/src/main/java/io/xpipe/ext/base/service/FixedServiceStore.java b/ext/base/src/main/java/io/xpipe/ext/base/service/FixedServiceStore.java index 84bc929b5..a7203c83b 100644 --- a/ext/base/src/main/java/io/xpipe/ext/base/service/FixedServiceStore.java +++ b/ext/base/src/main/java/io/xpipe/ext/base/service/FixedServiceStore.java @@ -1,6 +1,7 @@ package io.xpipe.ext.base.service; import io.xpipe.app.storage.DataStoreEntryRef; +import io.xpipe.app.util.Validators; import io.xpipe.core.store.DataStore; import io.xpipe.core.store.FixedChildStore; import io.xpipe.core.store.NetworkTunnelStore; @@ -21,6 +22,12 @@ public class FixedServiceStore extends AbstractServiceStore implements FixedChil private final DataStoreEntryRef host; private final DataStoreEntryRef displayParent; + @Override + public void checkComplete() throws Throwable { + Validators.nonNull(displayParent); + Validators.nonNull(displayParent.getStore()); + } + @Override public DataStoreEntryRef getHost() { return host; diff --git a/version b/version index ae99ce146..878f963eb 100644 --- a/version +++ b/version @@ -1 +1 @@ -10.0-22 +10.0-23