mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-05 18:39:30 +00:00
Don't show donationNag on empty wallets
This commit is contained in:
parent
d52df3b94e
commit
840d6a2b02
1 changed files with 3 additions and 0 deletions
|
@ -1575,6 +1575,9 @@ void MainWindow::donationNag() {
|
||||||
if (m_ctx->wallet->viewOnly())
|
if (m_ctx->wallet->viewOnly())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (m_ctx->wallet->balanceAll() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
auto donationCounter = config()->get(Config::donateBeg).toInt();
|
auto donationCounter = config()->get(Config::donateBeg).toInt();
|
||||||
if (donationCounter == -1)
|
if (donationCounter == -1)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue