mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-01 01:32:17 +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.FiatCurrency;
|
||||||
import bisq.core.locale.Res;
|
import bisq.core.locale.Res;
|
||||||
import bisq.core.locale.TradeCurrency;
|
import bisq.core.locale.TradeCurrency;
|
||||||
import bisq.core.user.DontShowAgainLookup;
|
|
||||||
|
|
||||||
public class ArsBlueRatePopup {
|
public class ArsBlueRatePopup {
|
||||||
public static boolean isTradeCurrencyArgentinePesos(TradeCurrency tradeCurrency) {
|
public static boolean isTradeCurrencyArgentinePesos(TradeCurrency tradeCurrency) {
|
||||||
|
@ -13,16 +12,12 @@ public class ArsBlueRatePopup {
|
||||||
return tradeCurrency.equals(arsCurrency);
|
return tradeCurrency.equals(arsCurrency);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void showMaybe() {
|
public static void show() {
|
||||||
String key = "arsBlueMarketNotificationPopup";
|
|
||||||
if (DontShowAgainLookup.showAgain(key)) {
|
|
||||||
new Popup()
|
new Popup()
|
||||||
.headLine(Res.get("popup.arsBlueMarket.title"))
|
.headLine(Res.get("popup.arsBlueMarket.title"))
|
||||||
.information(Res.get("popup.arsBlueMarket.info"))
|
.information(Res.get("popup.arsBlueMarket.info"))
|
||||||
.actionButtonText(Res.get("shared.iUnderstand"))
|
.actionButtonText(Res.get("shared.iUnderstand"))
|
||||||
.hideCloseButton()
|
.hideCloseButton()
|
||||||
.dontShowAgainId(key)
|
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ public abstract class PaymentMethodForm {
|
||||||
updateFromInputs();
|
updateFromInputs();
|
||||||
|
|
||||||
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
||||||
ArsBlueRatePopup.showMaybe();
|
ArsBlueRatePopup.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ public abstract class PaymentMethodForm {
|
||||||
paymentAccount.addCurrency(e);
|
paymentAccount.addCurrency(e);
|
||||||
|
|
||||||
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
|
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
|
||||||
ArsBlueRatePopup.showMaybe();
|
ArsBlueRatePopup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -328,7 +328,7 @@ public abstract class PaymentMethodForm {
|
||||||
flowPane.getChildren().add(checkBox);
|
flowPane.getChildren().add(checkBox);
|
||||||
|
|
||||||
if (isCurrencySelected && ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
|
if (isCurrencySelected && ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
|
||||||
ArsBlueRatePopup.showMaybe();
|
ArsBlueRatePopup.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1109,7 +1109,7 @@ public class GUIUtil {
|
||||||
onTradeCurrencySelectedHandler.accept(selectedCurrency);
|
onTradeCurrencySelectedHandler.accept(selectedCurrency);
|
||||||
|
|
||||||
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
|
||||||
ArsBlueRatePopup.showMaybe();
|
ArsBlueRatePopup.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue