mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +00:00
make usb sign dialog non modal
This commit is contained in:
parent
a8612da463
commit
f0b7409c4a
1 changed files with 5 additions and 0 deletions
|
@ -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<PSBT> optionalSignedPsbt = dlg.showAndWait();
|
||||
if(optionalSignedPsbt.isPresent()) {
|
||||
PSBT signedPsbt = optionalSignedPsbt.get();
|
||||
|
|
Loading…
Reference in a new issue