mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 03:29:28 +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);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue