mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Auto select all sepa countries by default
This commit is contained in:
parent
2a66600009
commit
7493f14b4d
@ -274,14 +274,17 @@ public class SepaForm extends PaymentMethodForm {
|
||||
}
|
||||
|
||||
boolean selected;
|
||||
|
||||
if (isEditable && selectedCurrency != null) {
|
||||
selected = CurrencyUtil.getCurrencyByCountryCode(countryCode).getCode().equals(selectedCurrency.getCode());
|
||||
|
||||
if (selected)
|
||||
sepaAccount.addAcceptedCountry(countryCode);
|
||||
else
|
||||
sepaAccount.removeAcceptedCountry(countryCode);
|
||||
// We changed behaviour to auto select all be default
|
||||
// Lets keep the old code in case we want to revert...
|
||||
selected = true;
|
||||
//selected = CurrencyUtil.getCurrencyByCountryCode(countryCode).getCode().equals(selectedCurrency.getCode());
|
||||
|
||||
//if (selected)
|
||||
sepaAccount.addAcceptedCountry(countryCode);
|
||||
//else
|
||||
// sepaAccount.removeAcceptedCountry(countryCode);
|
||||
} else {
|
||||
selected = sepaAccount.getAcceptedCountryCodes().contains(countryCode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user