mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 11:39:29 +00:00
'show all' resets default currency to create new offer
This commit is contained in:
parent
5444d96832
commit
42ede83ca2
1 changed files with 4 additions and 1 deletions
|
@ -260,7 +260,10 @@ abstract class OfferBookViewModel extends ActivatableViewModel {
|
||||||
showAllTradeCurrenciesProperty.set(showAllEntry);
|
showAllTradeCurrenciesProperty.set(showAllEntry);
|
||||||
if (isEditEntry(code))
|
if (isEditEntry(code))
|
||||||
navigation.navigateTo(MainView.class, SettingsView.class, PreferencesView.class);
|
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;
|
this.selectedTradeCurrency = tradeCurrency;
|
||||||
tradeCurrencyCode.set(code);
|
tradeCurrencyCode.set(code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue