From a35c6f2d83de81b886bff65a34e0c1a6828a0436 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 20 Apr 2023 08:14:56 +0000 Subject: [PATCH] Automatically fully refresh connection when initially added --- .../io/xpipe/app/comp/source/store/GuiDsStoreCreator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/comp/source/store/GuiDsStoreCreator.java b/app/src/main/java/io/xpipe/app/comp/source/store/GuiDsStoreCreator.java index 6fb7e741..ea67e7e9 100644 --- a/app/src/main/java/io/xpipe/app/comp/source/store/GuiDsStoreCreator.java +++ b/app/src/main/java/io/xpipe/app/comp/source/store/GuiDsStoreCreator.java @@ -18,6 +18,7 @@ import io.xpipe.app.fxcomps.util.SimpleChangeListener; import io.xpipe.app.issue.ErrorEvent; import io.xpipe.app.issue.ExceptionConverter; import io.xpipe.app.issue.TrackEvent; +import io.xpipe.app.prefs.AppPrefs; import io.xpipe.app.storage.DataStorage; import io.xpipe.app.storage.DataStoreEntry; import io.xpipe.app.util.*; @@ -261,7 +262,7 @@ public class GuiDsStoreCreator extends MultiStepComp.Step> { } if (messageProp.getValue() != null && !changedSinceError.get()) { - if (showInvalidConfirmAlert()) { + if (AppPrefs.get().developerMode().getValue() && showInvalidConfirmAlert()) { return true; } } @@ -282,8 +283,7 @@ public class GuiDsStoreCreator extends MultiStepComp.Step> { ThreadHelper.runAsync(() -> { try (var b = new BusyProperty(busy)) { - var e = DataStoreEntry.createNew(UUID.randomUUID(), entry.getValue().getName(), input.getValue()); - e.refresh(true); + entry.getValue().refresh(true); finished.setValue(true); PlatformThread.runLaterIfNeeded(parent::next); } catch (Exception ex) {