Always show ARS blue rate popup

We show the ARS blue rate popup whenever the user creates a payment
method and ARS is selected. Therefore, it makes sense to always show the
ARS blue rate popup.
This commit is contained in:
Alva Swanson 2025-01-01 20:12:41 +00:00
parent 33eced1117
commit d0f4b46a5b
No known key found for this signature in database
GPG key ID: 004760E77F753090
3 changed files with 11 additions and 16 deletions

View file

@ -5,7 +5,6 @@ import bisq.desktop.main.overlays.popups.Popup;
import bisq.core.locale.FiatCurrency;
import bisq.core.locale.Res;
import bisq.core.locale.TradeCurrency;
import bisq.core.user.DontShowAgainLookup;
public class ArsBlueRatePopup {
public static boolean isTradeCurrencyArgentinePesos(TradeCurrency tradeCurrency) {
@ -13,16 +12,12 @@ public class ArsBlueRatePopup {
return tradeCurrency.equals(arsCurrency);
}
public static void showMaybe() {
String key = "arsBlueMarketNotificationPopup";
if (DontShowAgainLookup.showAgain(key)) {
new Popup()
.headLine(Res.get("popup.arsBlueMarket.title"))
.information(Res.get("popup.arsBlueMarket.info"))
.actionButtonText(Res.get("shared.iUnderstand"))
.hideCloseButton()
.dontShowAgainId(key)
.show();
}
public static void show() {
new Popup()
.headLine(Res.get("popup.arsBlueMarket.title"))
.information(Res.get("popup.arsBlueMarket.info"))
.actionButtonText(Res.get("shared.iUnderstand"))
.hideCloseButton()
.show();
}
}

View file

@ -123,7 +123,7 @@ public abstract class PaymentMethodForm {
updateFromInputs();
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
ArsBlueRatePopup.showMaybe();
ArsBlueRatePopup.show();
}
});
}
@ -316,7 +316,7 @@ public abstract class PaymentMethodForm {
paymentAccount.addCurrency(e);
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
ArsBlueRatePopup.showMaybe();
ArsBlueRatePopup.show();
}
} else {
@ -328,7 +328,7 @@ public abstract class PaymentMethodForm {
flowPane.getChildren().add(checkBox);
if (isCurrencySelected && ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
ArsBlueRatePopup.showMaybe();
ArsBlueRatePopup.show();
}
}

View file

@ -1109,7 +1109,7 @@ public class GUIUtil {
onTradeCurrencySelectedHandler.accept(selectedCurrency);
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
ArsBlueRatePopup.showMaybe();
ArsBlueRatePopup.show();
}
});