forked from j62/ctbrec
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 {
|
} finally {
|
||||||
|
if (!deletedAccounts.isEmpty()) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
b.setDisable(false);
|
b.setDisable(false);
|
||||||
b.setText(buttonText);
|
b.setText(buttonText);
|
||||||
|
@ -68,7 +69,6 @@ public class CheckModelAccountAction {
|
||||||
.append(deletedModel.getUrl())
|
.append(deletedModel.getUrl())
|
||||||
.append(')').append('\n');
|
.append(')').append('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean remove = Dialogs.showConfirmDialog("Deleted Accounts", sb.toString(),
|
boolean remove = Dialogs.showConfirmDialog("Deleted Accounts", sb.toString(),
|
||||||
"The following accounts seem to have been deleted. Do you want to remove them?", b.getScene());
|
"The following accounts seem to have been deleted. Do you want to remove them?", b.getScene());
|
||||||
if (remove) {
|
if (remove) {
|
||||||
|
@ -76,6 +76,7 @@ public class CheckModelAccountAction {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
new Thread(checker).start();
|
new Thread(checker).start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue