mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Merge pull request #2725 from ripcurlx/remove-rounding-popup-showing-redundancy
Only show rounding popup once during activation
This commit is contained in:
commit
536ef67be0
2 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue