diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java index a388dde9..c4433e93 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/PaymentController.java @@ -197,6 +197,13 @@ public class PaymentController extends WalletFormController implements Initializ } } }); + openWallets.setOnShowing(event -> { + if(!openWallets.getItems().contains(nfcCardWallet) && CardApi.isReaderAvailable()) { + openWallets.getItems().add(nfcCardWallet); + } else if(openWallets.getItems().contains(nfcCardWallet) && !CardApi.isReaderAvailable()) { + openWallets.getItems().remove(nfcCardWallet); + } + }); payNymProperty.addListener((observable, oldValue, payNym) -> { updateMixOnlyStatus(payNym);