From ed323a838860ea550a08288842246321c7df3d95 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 12 May 2021 09:19:49 +0200 Subject: [PATCH] ensure aopp window is always on top --- .../com/sparrowwallet/sparrow/wallet/ReceiveController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java index bb85e0c5..ea4f8d81 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java @@ -28,6 +28,7 @@ import javafx.fxml.Initializable; import javafx.scene.control.*; import javafx.scene.image.Image; import javafx.scene.image.ImageView; +import javafx.stage.Stage; import org.controlsfx.glyphfont.Glyph; import org.fxmisc.richtext.CodeArea; import org.slf4j.Logger; @@ -252,6 +253,8 @@ public class ReceiveController extends WalletFormController implements Initializ ButtonType cancelButtonType = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE); MessageSignDialog messageSignDialog = new MessageSignDialog(getWalletForm().getWallet(), currentEntry.getNode(), "Send Proof of Address", aopp.getMessage(), signSendButtonType, cancelButtonType); messageSignDialog.setElectrumSignatureFormat(true); + Stage stage = (Stage)messageSignDialog.getDialogPane().getScene().getWindow(); + stage.setAlwaysOnTop(true); Optional buttonData = messageSignDialog.showAndWait(); if(buttonData.isPresent() && buttonData.get() == ButtonBar.ButtonData.OK_DONE) { Address address = getWalletForm().getWallet().getAddress(currentEntry.getNode());