From 4819f329ae88fa383a093264de8c0d187c8b3d26 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 15 Dec 2021 16:45:40 +0200 Subject: [PATCH] dont allow soroban mix to start if initiator is not connected --- .../java/com/sparrowwallet/sparrow/soroban/InitiatorDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/soroban/InitiatorDialog.java b/src/main/java/com/sparrowwallet/sparrow/soroban/InitiatorDialog.java index 75c5e609..986e081d 100644 --- a/src/main/java/com/sparrowwallet/sparrow/soroban/InitiatorDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/soroban/InitiatorDialog.java @@ -65,7 +65,7 @@ public class InitiatorDialog extends Dialog { broadcastButton.visibleProperty().bind(nextButton.visibleProperty().not()); initiatorController.counterpartyPaymentCodeProperty().addListener((observable, oldValue, paymentCode) -> { - nextButton.setDisable(paymentCode == null); + nextButton.setDisable(paymentCode == null || !AppServices.isConnected()); }); initiatorController.stepProperty().addListener((observable, oldValue, step) -> {