mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Automatically fully refresh connection when initially added
This commit is contained in:
parent
0f306a5d50
commit
a35c6f2d83
1 changed files with 3 additions and 3 deletions
|
@ -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<CompStructure<?>> {
|
|||
}
|
||||
|
||||
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<CompStructure<?>> {
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue