mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-12 15:59:55 -05:00
fix price disappearing when first payment account created
This commit is contained in:
parent
f9d700074a
commit
6fbfef029e
@ -169,7 +169,7 @@ public class MarketPricePresentation {
|
||||
|
||||
marketPriceCurrencyCode.bind(priceFeedService.currencyCodeProperty());
|
||||
|
||||
priceFeedAllLoadedSubscription = EasyBind.subscribe(priceFeedService.updateCounterProperty(), updateCounter -> setMarketPriceInItems());
|
||||
priceFeedAllLoadedSubscription = EasyBind.subscribe(priceFeedService.updateCounterProperty(), updateCounter -> UserThread.execute(() -> setMarketPriceInItems()));
|
||||
|
||||
preferences.getTradeCurrenciesAsObservable().addListener((ListChangeListener<TradeCurrency>) c -> UserThread.runAfter(() -> {
|
||||
fillPriceFeedComboBoxItems();
|
||||
@ -184,7 +184,6 @@ public class MarketPricePresentation {
|
||||
}
|
||||
|
||||
private void setMarketPriceInItems() {
|
||||
UserThread.execute(() -> {
|
||||
priceFeedComboBoxItems.forEach(item -> {
|
||||
String currencyCode = item.currencyCode;
|
||||
MarketPrice marketPrice = priceFeedService.getMarketPrice(currencyCode);
|
||||
@ -209,7 +208,6 @@ public class MarketPricePresentation {
|
||||
marketPriceUpdated.set(marketPriceUpdated.get() + 1);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public ObjectProperty<PriceFeedComboBoxItem> getSelectedPriceFeedComboBoxItemProperty() {
|
||||
|
Loading…
Reference in New Issue
Block a user