make usb sign dialog non modal

This commit is contained in:
Craig Raw 2020-08-09 12:45:09 +02:00
parent a8612da463
commit f0b7409c4a

View file

@ -25,6 +25,7 @@ import javafx.scene.input.ClipboardContent;
import javafx.scene.layout.HBox; import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox; import javafx.scene.layout.VBox;
import javafx.stage.FileChooser; import javafx.stage.FileChooser;
import javafx.stage.Modality;
import javafx.stage.Stage; import javafx.stage.Stage;
import org.controlsfx.glyphfont.Glyph; import org.controlsfx.glyphfont.Glyph;
import org.slf4j.Logger; 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()); 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(); Optional<PSBT> optionalSignedPsbt = dlg.showAndWait();
if(optionalSignedPsbt.isPresent()) { if(optionalSignedPsbt.isPresent()) {
PSBT signedPsbt = optionalSignedPsbt.get(); PSBT signedPsbt = optionalSignedPsbt.get();