diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index 477995fd..97e4cc91 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -420,12 +420,20 @@ public class HeadersController extends TransactionFormController implements Init signaturesProgressBar.initialize(headersForm.getSignatureKeystoreMap(), threshold); }); - Platform.runLater(() -> EventManager.get().post(new RequestOpenWalletsEvent())); + Platform.runLater(this::requestOpenWallets); } blockchainForm.setDynamicUpdate(this); } + private void requestOpenWallets() { + if(id.getScene() != null) { + EventManager.get().post(new RequestOpenWalletsEvent()); + } else { + Platform.runLater(this::requestOpenWallets); + } + } + private void updateType() { String type = "Legacy"; if(headersForm.getTransaction().isSegwit() || (headersForm.getPsbt() != null && headersForm.getPsbt().getPsbtInputs().stream().anyMatch(in -> in.getWitnessUtxo() != null))) {