Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info popup about Argentinian Peso market prices. #6840

Merged
merged 1 commit into from Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3411,6 +3411,13 @@ popup.info.torMigration.msg=Your Bisq node is currently using a Tor v2 address.
[HYPERLINK:https://bisq.wiki/Changing_your_onion_address] or in this video [HYPERLINK:https://bitcointv.com/videos/watch/f96adc20-4092-4253-84c0-1b18088b4b95]. \n\n\
Make sure to back up your data directory beforehand.

popup.arsBlueMarket.title=Blue rate market quotes for ARS
popup.arsBlueMarket.info=The Agrentinian Peso (ARS) market is using the `Blue Dollar` street price. \
Please note the blue rate is experimental and has fewer providers than other markets. \n\
We will add more providers in the coming months. \
More info: [HYPERLINK:https://github.com/bisq-network/bisq/issues/6601] \
[HYPERLINK:https://bluedollar.net/]

####################################################################
# Notifications
####################################################################
Expand Down
15 changes: 15 additions & 0 deletions desktop/src/main/java/bisq/desktop/main/MainViewModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ public void onSetupComplete() {
setupDevDummyPaymentAccounts();
}

maybeAddArsBlueMarketNotificationToQueue();
getShowAppScreen().set(true);
}

Expand Down Expand Up @@ -897,6 +898,20 @@ public BooleanProperty getShowSettingsUpdatesNotification() {
return settingsPresentation.getShowSettingsUpdatesNotification();
}

private void maybeAddArsBlueMarketNotificationToQueue() {
String key = "arsBlueMarketNotificationPopup";
if (DontShowAgainLookup.showAgain(key)) {
Popup popup = new Popup()
.headLine(Res.get("popup.arsBlueMarket.title"))
.information(Res.get("popup.arsBlueMarket.info"))
.actionButtonText(Res.get("shared.iUnderstand"))
.hideCloseButton()
.dontShowAgainId(key);
popup.setDisplayOrderPriority(1);
popupQueue.add(popup);
}
}

private void maybeShowPopupsFromQueue() {
if (!popupQueue.isEmpty()) {
Overlay<?> overlay = popupQueue.poll();
Expand Down