Don't show dialog, if no model account has been deleted
This commit is contained in:
parent
2f0ef47acf
commit
372fcd0d13
|
@ -56,6 +56,7 @@ public class CheckModelAccountAction {
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if (!deletedAccounts.isEmpty()) {
|
||||
Platform.runLater(() -> {
|
||||
b.setDisable(false);
|
||||
b.setText(buttonText);
|
||||
|
@ -68,7 +69,6 @@ public class CheckModelAccountAction {
|
|||
.append(deletedModel.getUrl())
|
||||
.append(')').append('\n');
|
||||
}
|
||||
|
||||
boolean remove = Dialogs.showConfirmDialog("Deleted Accounts", sb.toString(),
|
||||
"The following accounts seem to have been deleted. Do you want to remove them?", b.getScene());
|
||||
if (remove) {
|
||||
|
@ -76,6 +76,7 @@ public class CheckModelAccountAction {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
new Thread(checker).start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue