diff --git a/desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsViewModel.java b/desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsViewModel.java index fd835a17b6..b3e3365ca2 100644 --- a/desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsViewModel.java +++ b/desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsViewModel.java @@ -129,7 +129,10 @@ class TradesChartsViewModel extends ActivatableViewModel { fillTradeCurrencies(); }; - Optional tradeCurrencyOptional = CurrencyUtil.getTradeCurrency(preferences.getTradeChartsScreenCurrencyCode()); + String tradeChartsScreenCurrencyCode = preferences.getTradeChartsScreenCurrencyCode(); + showAllTradeCurrenciesProperty.set(isShowAllEntry(tradeChartsScreenCurrencyCode)); + + Optional tradeCurrencyOptional = CurrencyUtil.getTradeCurrency(tradeChartsScreenCurrencyCode); if (tradeCurrencyOptional.isPresent()) selectedTradeCurrencyProperty.set(tradeCurrencyOptional.get()); else @@ -186,8 +189,8 @@ class TradesChartsViewModel extends ActivatableViewModel { showAllTradeCurrenciesProperty.set(showAllEntry); if (!showAllEntry) { selectedTradeCurrencyProperty.set(tradeCurrency); - preferences.setTradeChartsScreenCurrencyCode(code); } + preferences.setTradeChartsScreenCurrencyCode(code); updateChartData();