mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Only show rounding popup once during activation and not show it in edit offer screen.
Fixes #2708.
This commit is contained in:
parent
24d0baeaa6
commit
c972dfe668
@ -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()))
|
||||
|
@ -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
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user