mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Bugfix: GUI: Overview: Fix hiding of immature when balances are zero
This commit is contained in:
parent
8048a6d8bf
commit
6ab7bcc4eb
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ void OverviewPage::setBalance(const interfaces::WalletBalances& balances)
|
||||||
|
|
||||||
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
|
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
|
||||||
// for the non-mining users
|
// for the non-mining users
|
||||||
bool showImmature = !balances.immature_balance.empty();
|
bool showImmature = !!balances.immature_balance;
|
||||||
bool showWatchOnlyImmature = !balances.immature_watch_only_balance.empty();
|
bool showWatchOnlyImmature = !!balances.immature_watch_only_balance;
|
||||||
|
|
||||||
// for symmetry reasons also show immature label when the watch-only one is shown
|
// for symmetry reasons also show immature label when the watch-only one is shown
|
||||||
ui->labelImmature->setVisible(showImmature || showWatchOnlyImmature);
|
ui->labelImmature->setVisible(showImmature || showWatchOnlyImmature);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue