mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03: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:
parent
dc9d662683
commit
fdb8dc8a5a
1 changed files with 1 additions and 1 deletions
|
@ -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:"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue