Skip to content

Commit

Permalink
Merge pull request #6840 from jmacxx/blue_dollar_info
Browse files Browse the repository at this point in the history
Add info popup about Argentinian Peso market prices.
  • Loading branch information
alejandrogarcia83 authored Sep 6, 2023
2 parents 5738d07 + 4bc5494 commit f84ebc2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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

0 comments on commit f84ebc2

Please sign in to comment.