add crypto logos to market pulldown

This commit is contained in:
woodser 2025-05-15 15:59:22 -04:00
parent 1604ec8e73
commit b7136b6950
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -333,6 +333,13 @@ public class GUIUtil {
currency.setText(Res.get("list.currency.editList"));
break;
default:
// use icons for crypto
if (CurrencyUtil.isCryptoCurrency(code)) {
currencyType.setText("");
currencyType.setGraphic(getCurrencyIcon(code));
}
if (preferences.isSortMarketCurrenciesNumerically()) {
offers.setText(offers.getText() + " (" + item.numTrades + " " +
(item.numTrades == 1 ? postFixSingle : postFixMulti) + ")");