mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 12:09:22 +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