mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-19 05:50:46 +02:00
gui: Show watchonly balance only for Legacy wallets
Descriptor wallets do not have a watchonly balance as wallets are designated watchonly or not. Thus we should not be displaying the empty watchonly balance for descriptor wallets.
This commit is contained in:
@@ -703,7 +703,7 @@ void SendCoinsDialog::setBalance(const interfaces::WalletBalances& balances)
|
|||||||
CAmount balance = balances.balance;
|
CAmount balance = balances.balance;
|
||||||
if (model->wallet().hasExternalSigner()) {
|
if (model->wallet().hasExternalSigner()) {
|
||||||
ui->labelBalanceName->setText(tr("External balance:"));
|
ui->labelBalanceName->setText(tr("External balance:"));
|
||||||
} else if (model->wallet().privateKeysDisabled()) {
|
} else if (model->wallet().isLegacy() && model->wallet().privateKeysDisabled()) {
|
||||||
balance = balances.watch_only_balance;
|
balance = balances.watch_only_balance;
|
||||||
ui->labelBalanceName->setText(tr("Watch-only balance:"));
|
ui->labelBalanceName->setText(tr("Watch-only balance:"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user