Skip to content

Commit

Permalink
Merge pull request #2725 from ripcurlx/remove-rounding-popup-showing-…
Browse files Browse the repository at this point in the history
…redundancy

Only show rounding popup once during activation
  • Loading branch information
ManfredKarrer authored Apr 16, 2019
2 parents ddeb1b4 + c972dfe commit 536ef67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ protected void doActivate() {
balanceTextField.setTargetAmount(model.getDataModel().totalToPayAsCoinProperty().get());
updatePriceToggle();

showFiatRoundingInfoPopup();

boolean currencyForMakerFeeBtc = model.getDataModel().isCurrencyForMakerFeeBtc();
tradeFeeInBtcToggle.setSelected(currencyForMakerFeeBtc);
tradeFeeInBsqToggle.setSelected(!currencyForMakerFeeBtc);
Expand Down Expand Up @@ -346,7 +344,7 @@ public void setCloseHandler(OfferView.CloseHandler closeHandler) {
// UI actions
///////////////////////////////////////////////////////////////////////////////////////////

private void showFiatRoundingInfoPopup() {
protected void showFiatRoundingInfoPopup() {
if (CurrencyUtil.isFiatCurrency(model.tradeCurrencyCode.get()) && !DevEnv.isDevMode()) {
new Popup<>().headLine(Res.get("popup.roundedFiatValues.headline"))
.information(Res.get("popup.roundedFiatValues.msg", model.tradeCurrencyCode.get()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ protected void deactivate() {
removeBindings();
}

@Override
protected void showFiatRoundingInfoPopup() {
// don't show it again as it was already shown when creating the offer in the first place
}

///////////////////////////////////////////////////////////////////////////////////////////
// API
///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 536ef67

Please sign in to comment.