Skip to content

Commit 6124818

Browse files
committed
Don't show confirmation dialog when user click disconnect from server btn.
1 parent c387cea commit 6124818

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/exalttech/trex/ui/controllers/MainViewController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,15 +1668,16 @@ public void changed(ObservableValue<? extends T> observable, T oldValue, T newVa
16681668
if (reverting || lastLoadedPortPtofileIndex != prevViewvedPortPtofileIndex) {
16691669
return;
16701670
}
1671-
if (!isAllowed()) {
1671+
1672+
if (!resetAppInProgress && !isAllowed()) {
16721673
reverting = true;
16731674
Platform.runLater(() -> {
16741675
selectionModel.select(oldValue);
16751676
reverting = false;
16761677
});
16771678
return;
16781679
}
1679-
1680+
16801681
try {
16811682
doAssignProfile = true;
16821683
String profileName = String.valueOf(newValue);

0 commit comments

Comments
 (0)