mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-28 17:15:14 +01:00
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:
parent
33eced1117
commit
d0f4b46a5b
3 changed files with 11 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1109,7 +1109,7 @@ public class GUIUtil {
|
|||
onTradeCurrencySelectedHandler.accept(selectedCurrency);
|
||||
|
||||
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
||||
ArsBlueRatePopup.showMaybe();
|
||||
ArsBlueRatePopup.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue