Skip to content

Commit

Permalink
'show all' resets default currency to create new offer
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Dec 21, 2024
1 parent 5444d96 commit 42ede83
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ void onSetTradeCurrency(TradeCurrency tradeCurrency) {
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);
}
Expand Down

0 comments on commit 42ede83

Please sign in to comment.