mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 00:27:00 +00:00
followup: add or remove card option from pay to dropdown as reader becomes available
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user