mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
dont post open wallets event until scene set
This commit is contained in:
parent
668dd88436
commit
2b47740539
1 changed files with 9 additions and 1 deletions
|
@ -420,12 +420,20 @@ public class HeadersController extends TransactionFormController implements Init
|
||||||
signaturesProgressBar.initialize(headersForm.getSignatureKeystoreMap(), threshold);
|
signaturesProgressBar.initialize(headersForm.getSignatureKeystoreMap(), threshold);
|
||||||
});
|
});
|
||||||
|
|
||||||
Platform.runLater(() -> EventManager.get().post(new RequestOpenWalletsEvent()));
|
Platform.runLater(this::requestOpenWallets);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockchainForm.setDynamicUpdate(this);
|
blockchainForm.setDynamicUpdate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void requestOpenWallets() {
|
||||||
|
if(id.getScene() != null) {
|
||||||
|
EventManager.get().post(new RequestOpenWalletsEvent());
|
||||||
|
} else {
|
||||||
|
Platform.runLater(this::requestOpenWallets);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void updateType() {
|
private void updateType() {
|
||||||
String type = "Legacy";
|
String type = "Legacy";
|
||||||
if(headersForm.getTransaction().isSegwit() || (headersForm.getPsbt() != null && headersForm.getPsbt().getPsbtInputs().stream().anyMatch(in -> in.getWitnessUtxo() != null))) {
|
if(headersForm.getTransaction().isSegwit() || (headersForm.getPsbt() != null && headersForm.getPsbt().getPsbtInputs().stream().anyMatch(in -> in.getWitnessUtxo() != null))) {
|
||||||
|
|
Loading…
Reference in a new issue