| 419 | } |
| 420 | |
| 421 | void BitcoinAmountField::addAssetChoice(const CAsset& asset) |
| 422 | { |
| 423 | if (asset == Params().GetConsensus().pegged_asset) { |
| 424 | // Special handling |
| 425 | for (const auto& pegged_unit : BitcoinUnits::availableUnits()) { |
| 426 | unit->addItem(BitcoinUnits::shortName(pegged_unit), int(pegged_unit)); |
| 427 | } |
| 428 | return; |
| 429 | } |
| 430 | unit->addItem(QString::fromStdString(gAssetsDir.GetIdentifier(asset)), QVariant::fromValue(asset)); |
| 431 | } |
| 432 | |
| 433 | void BitcoinAmountField::removeAssetChoice(const CAsset& asset) |
| 434 | { |
nothing calls this directly
no test coverage detected