Skip to content

Commit

Permalink
Only show rounding popup once during activation and not show it in ed…
Browse files Browse the repository at this point in the history
…it offer screen.

Fixes #2708.
  • Loading branch information
ripcurlx committed Apr 16, 2019
1 parent 24d0bae commit c972dfe
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 c972dfe

Please sign in to comment.