dont allow soroban mix to start if initiator is not connected

This commit is contained in:
Craig Raw 2021-12-15 16:45:40 +02:00
parent 52aed8a3f5
commit 4819f329ae

View file

@ -65,7 +65,7 @@ public class InitiatorDialog extends Dialog<Transaction> {
broadcastButton.visibleProperty().bind(nextButton.visibleProperty().not()); broadcastButton.visibleProperty().bind(nextButton.visibleProperty().not());
initiatorController.counterpartyPaymentCodeProperty().addListener((observable, oldValue, paymentCode) -> { initiatorController.counterpartyPaymentCodeProperty().addListener((observable, oldValue, paymentCode) -> {
nextButton.setDisable(paymentCode == null); nextButton.setDisable(paymentCode == null || !AppServices.isConnected());
}); });
initiatorController.stepProperty().addListener((observable, oldValue, step) -> { initiatorController.stepProperty().addListener((observable, oldValue, step) -> {