From f0b7409c4abe35375b7eec9415fdcdbb3da816a0 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sun, 9 Aug 2020 12:45:09 +0200 Subject: [PATCH] make usb sign dialog non modal --- .../sparrowwallet/sparrow/transaction/HeadersController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index 735b0d4f..f607e9a8 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -25,6 +25,7 @@ import javafx.scene.input.ClipboardContent; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.stage.FileChooser; +import javafx.stage.Modality; import javafx.stage.Stage; import org.controlsfx.glyphfont.Glyph; import org.slf4j.Logger; @@ -643,6 +644,10 @@ public class HeadersController extends TransactionFormController implements Init } DeviceSignDialog dlg = new DeviceSignDialog(signingDevices.isEmpty() ? null : signingDevices, headersForm.getPsbt()); + dlg.initModality(Modality.NONE); + Stage stage = (Stage)dlg.getDialogPane().getScene().getWindow(); + stage.setAlwaysOnTop(true); + Optional optionalSignedPsbt = dlg.showAndWait(); if(optionalSignedPsbt.isPresent()) { PSBT signedPsbt = optionalSignedPsbt.get();