From a5c0b5b41bfacdccd1256649661f503fbdb5b99c Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 20 May 2025 13:57:37 +0000 Subject: [PATCH] Fix store creation with blank name --- .../main/java/io/xpipe/app/comp/store/StoreCreationModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/comp/store/StoreCreationModel.java b/app/src/main/java/io/xpipe/app/comp/store/StoreCreationModel.java index a4f589905..4f0bb159e 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/StoreCreationModel.java +++ b/app/src/main/java/io/xpipe/app/comp/store/StoreCreationModel.java @@ -88,7 +88,7 @@ public class StoreCreationModel { }); this.entry = Bindings.createObjectBinding( () -> { - if (name.getValue() == null || store.getValue() == null) { + if (name.getValue() == null || store.getValue() == null || name.getValue().isBlank()) { return null; } @@ -107,7 +107,7 @@ public class StoreCreationModel { skippable.bind(Bindings.createBooleanBinding( () -> { - if (name.get() != null && store.get().isComplete() && store.get() instanceof ValidatableStore) { + if (entry.getValue() != null && store.get().isComplete() && store.get() instanceof ValidatableStore) { return true; } else { return false;