mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
#1123 Preferred currency drop down renders duplicate currency
This commit is contained in:
parent
76e1cd2eca
commit
f13f130894
@ -608,9 +608,9 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
|
|||||||
|
|
||||||
private void updateTradeCurrencies(ListChangeListener.Change<? extends TradeCurrency> change) {
|
private void updateTradeCurrencies(ListChangeListener.Change<? extends TradeCurrency> change) {
|
||||||
change.next();
|
change.next();
|
||||||
if (change.wasAdded() && change.getAddedSize() == 1)
|
if (change.wasAdded() && change.getAddedSize() == 1 && initialReadDone)
|
||||||
tradeCurrenciesAsObservable.add(change.getAddedSubList().get(0));
|
tradeCurrenciesAsObservable.add(change.getAddedSubList().get(0));
|
||||||
else if (change.wasRemoved() && change.getRemovedSize() == 1)
|
else if (change.wasRemoved() && change.getRemovedSize() == 1 && initialReadDone)
|
||||||
tradeCurrenciesAsObservable.remove(change.getRemoved().get(0));
|
tradeCurrenciesAsObservable.remove(change.getRemoved().get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user