Skip to content

Commit

Permalink
PreferencesView: Show ARS blue rate popup if selected
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Jan 1, 2025
1 parent 6c1e45e commit 4bb7b38
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import bisq.desktop.components.InputTextField;
import bisq.desktop.components.PasswordTextField;
import bisq.desktop.components.TitledGroupBg;
import bisq.desktop.components.paymentmethods.ArsBlueRatePopup;
import bisq.desktop.main.overlays.popups.Popup;
import bisq.desktop.main.overlays.windows.EditCustomExplorerWindow;
import bisq.desktop.util.GUIUtil;
Expand Down Expand Up @@ -1029,8 +1030,13 @@ private void activateDisplayCurrencies() {
preferredTradeCurrencyComboBox.setVisibleRowCount(12);
preferredTradeCurrencyComboBox.setOnAction(e -> {
TradeCurrency selectedItem = preferredTradeCurrencyComboBox.getSelectionModel().getSelectedItem();
if (selectedItem != null)
if (selectedItem != null) {
preferences.setPreferredTradeCurrency(selectedItem);

if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedItem)) {
ArsBlueRatePopup.showMaybe();
}
}
GUIUtil.updateTopAltcoin(preferences);
});

Expand Down

0 comments on commit 4bb7b38

Please sign in to comment.