mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
followup: add or remove card option from pay to dropdown as reader becomes available
This commit is contained in:
parent
4e3491ec64
commit
73dcef9fd1
1 changed files with 7 additions and 0 deletions
|
@ -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) -> {
|
payNymProperty.addListener((observable, oldValue, payNym) -> {
|
||||||
updateMixOnlyStatus(payNym);
|
updateMixOnlyStatus(payNym);
|
||||||
|
|
Loading…
Reference in a new issue