Skip to content

Commit d0f4b46

Browse files
committed
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.
1 parent 33eced1 commit d0f4b46

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

desktop/src/main/java/bisq/desktop/components/paymentmethods/ArsBlueRatePopup.java

+7-12
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,19 @@
55
import bisq.core.locale.FiatCurrency;
66
import bisq.core.locale.Res;
77
import bisq.core.locale.TradeCurrency;
8-
import bisq.core.user.DontShowAgainLookup;
98

109
public class ArsBlueRatePopup {
1110
public static boolean isTradeCurrencyArgentinePesos(TradeCurrency tradeCurrency) {
1211
FiatCurrency arsCurrency = new FiatCurrency("ARS");
1312
return tradeCurrency.equals(arsCurrency);
1413
}
1514

16-
public static void showMaybe() {
17-
String key = "arsBlueMarketNotificationPopup";
18-
if (DontShowAgainLookup.showAgain(key)) {
19-
new Popup()
20-
.headLine(Res.get("popup.arsBlueMarket.title"))
21-
.information(Res.get("popup.arsBlueMarket.info"))
22-
.actionButtonText(Res.get("shared.iUnderstand"))
23-
.hideCloseButton()
24-
.dontShowAgainId(key)
25-
.show();
26-
}
15+
public static void show() {
16+
new Popup()
17+
.headLine(Res.get("popup.arsBlueMarket.title"))
18+
.information(Res.get("popup.arsBlueMarket.info"))
19+
.actionButtonText(Res.get("shared.iUnderstand"))
20+
.hideCloseButton()
21+
.show();
2722
}
2823
}

desktop/src/main/java/bisq/desktop/components/paymentmethods/PaymentMethodForm.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public TradeCurrency fromString(String s) {
123123
updateFromInputs();
124124

125125
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
126-
ArsBlueRatePopup.showMaybe();
126+
ArsBlueRatePopup.show();
127127
}
128128
});
129129
}
@@ -316,7 +316,7 @@ void fillUpFlowPaneWithCurrencies(boolean isEditable, FlowPane flowPane,
316316
paymentAccount.addCurrency(e);
317317

318318
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
319-
ArsBlueRatePopup.showMaybe();
319+
ArsBlueRatePopup.show();
320320
}
321321

322322
} else {
@@ -328,7 +328,7 @@ void fillUpFlowPaneWithCurrencies(boolean isEditable, FlowPane flowPane,
328328
flowPane.getChildren().add(checkBox);
329329

330330
if (isCurrencySelected && ArsBlueRatePopup.isTradeCurrencyArgentinePesos(e)) {
331-
ArsBlueRatePopup.showMaybe();
331+
ArsBlueRatePopup.show();
332332
}
333333
}
334334

desktop/src/main/java/bisq/desktop/util/GUIUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ public TradeCurrency fromString(String string) {
11091109
onTradeCurrencySelectedHandler.accept(selectedCurrency);
11101110

11111111
if (ArsBlueRatePopup.isTradeCurrencyArgentinePesos(selectedCurrency)) {
1112-
ArsBlueRatePopup.showMaybe();
1112+
ArsBlueRatePopup.show();
11131113
}
11141114
});
11151115

0 commit comments

Comments
 (0)