From 42ede83ca208e9f4786916d2eb1e07a53149753e Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 21 Dec 2024 08:43:14 -0500 Subject: [PATCH] 'show all' resets default currency to create new offer --- .../desktop/main/offer/offerbook/OfferBookViewModel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/main/offer/offerbook/OfferBookViewModel.java b/desktop/src/main/java/haveno/desktop/main/offer/offerbook/OfferBookViewModel.java index d0c9317274..967e29b6e3 100644 --- a/desktop/src/main/java/haveno/desktop/main/offer/offerbook/OfferBookViewModel.java +++ b/desktop/src/main/java/haveno/desktop/main/offer/offerbook/OfferBookViewModel.java @@ -260,7 +260,10 @@ abstract class OfferBookViewModel extends ActivatableViewModel { showAllTradeCurrenciesProperty.set(showAllEntry); if (isEditEntry(code)) navigation.navigateTo(MainView.class, SettingsView.class, PreferencesView.class); - else if (!showAllEntry) { + else if (showAllEntry) { + this.selectedTradeCurrency = getDefaultTradeCurrency(); + tradeCurrencyCode.set(selectedTradeCurrency.getCode()); + } else { this.selectedTradeCurrency = tradeCurrency; tradeCurrencyCode.set(code); }