Only show rounding popup once during activation and not show it in edit offer screen.

Fixes #2708.
This commit is contained in:
Christoph Atteneder 2019-04-16 15:01:14 +02:00
parent 24d0baeaa6
commit c972dfe668
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 6 additions and 3 deletions

View File

@ -250,8 +250,6 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel> extends
balanceTextField.setTargetAmount(model.getDataModel().totalToPayAsCoinProperty().get());
updatePriceToggle();
showFiatRoundingInfoPopup();
boolean currencyForMakerFeeBtc = model.getDataModel().isCurrencyForMakerFeeBtc();
tradeFeeInBtcToggle.setSelected(currencyForMakerFeeBtc);
tradeFeeInBsqToggle.setSelected(!currencyForMakerFeeBtc);
@ -346,7 +344,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel> extends
// 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()))

View File

@ -130,6 +130,11 @@ public class EditOfferView extends MutableOfferView<EditOfferViewModel> {
removeBindings();
}
@Override
protected void showFiatRoundingInfoPopup() {
// don't show it again as it was already shown when creating the offer in the first place
}
///////////////////////////////////////////////////////////////////////////////////////////
// API
///////////////////////////////////////////////////////////////////////////////////////////