This commit was missing from my previous pull request for some reason :thinking: :
- gui: Generate bech32 addresses by default #15711
This commit was missing from my previous pull request for some reason :thinking: :
Thanks! Tested ACK fa5a4cd813c2f0225dcbc05cd16ae2d1c0d13234
92 | @@ -92,10 +93,16 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model) 93 | // Last 2 columns are set by the columnResizingFixer, when the table geometry is ready. 94 | columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this); 95 | 96 | - if (model->wallet().getDefaultAddressType() == OutputType::BECH32) { 97 | - ui->useLegacyAddress->setCheckState(Qt::Unchecked); 98 | + if (model->node().isAddressTypeSet()) {
nit, to avoid nesting previous code you could do:
if (!model->node().isAddressTypeSet()) {
// Always fall back to bech32 in the gui
ui->useLegacyAddress->setCheckState(Qt::Unchecked);
} else if ...
Good point. I will leave it as is for now, to not invalidate review.
ACK fa5a4cd813c2f0225dcbc05cd16ae2d1c0d13234.
ACK fa5a4cd813c2f0225dcbc05cd16ae2d1c0d13234
