Don't show donationNag on empty wallets

This commit is contained in:
tobtoht 2022-06-23 12:41:16 +02:00
parent d52df3b94e
commit 840d6a2b02
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -1575,6 +1575,9 @@ void MainWindow::donationNag() {
if (m_ctx->wallet->viewOnly())
return;
if (m_ctx->wallet->balanceAll() == 0)
return;
auto donationCounter = config()->get(Config::donateBeg).toInt();
if (donationCounter == -1)
return;