mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-25 19:11:04 -04:00
fix outdated currency shown in create offer like this (#1931)
This commit is contained in:
parent
f7ec36fd70
commit
55c02a53d3
1 changed files with 9 additions and 1 deletions
|
@ -533,7 +533,15 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
|
|||
}
|
||||
|
||||
private void onCurrencyComboBoxSelected() {
|
||||
model.onCurrencySelected(currencyComboBox.getSelectionModel().getSelectedItem());
|
||||
TradeCurrency currency = currencyComboBox.getSelectionModel().getSelectedItem();
|
||||
model.onCurrencySelected(currency);
|
||||
|
||||
// update the place offer button text
|
||||
if (OfferViewUtil.isShownAsBuyOffer(model.getDataModel().getDirection(), currency)) {
|
||||
placeOfferButton.updateText( Res.get("createOffer.placeOfferButton.buy", currency.getCode()));
|
||||
} else {
|
||||
placeOfferButton.updateText(Res.get("createOffer.placeOfferButton.sell", currency.getCode()));
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue