also show legacy qr display for imported keystores

This commit is contained in:
Craig Raw 2021-02-08 09:36:24 +02:00
parent 525d57ec73
commit 0097a1ecbc

View file

@ -633,7 +633,7 @@ public class HeadersController extends TransactionFormController implements Init
toggleButton.setSelected(false); toggleButton.setSelected(false);
//TODO: Remove once Cobo Vault has upgraded to UR2.0 //TODO: Remove once Cobo Vault has upgraded to UR2.0
boolean addLegacyEncodingOption = headersForm.getSigningWallet().getKeystores().stream().anyMatch(keystore -> keystore.getWalletModel().equals(WalletModel.COBO_VAULT)); boolean addLegacyEncodingOption = headersForm.getSigningWallet().getKeystores().stream().anyMatch(keystore -> keystore.getWalletModel().equals(WalletModel.COBO_VAULT) || keystore.getWalletModel().equals(WalletModel.SPARROW));
try { try {
QRDisplayDialog qrDisplayDialog = new QRDisplayDialog(RegistryType.CRYPTO_PSBT.toString(), headersForm.getPsbt().serialize(), addLegacyEncodingOption); QRDisplayDialog qrDisplayDialog = new QRDisplayDialog(RegistryType.CRYPTO_PSBT.toString(), headersForm.getPsbt().serialize(), addLegacyEncodingOption);