From: tobtoht Date: Thu, 23 Jun 2022 10:41:16 +0000 (+0200) Subject: Don't show donationNag on empty wallets X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=840d6a2b02d33634f197dad8c33adb5b6d64b515;p=gamesguru%2Ffeather.git Don't show donationNag on empty wallets --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 266fd399..ff8fbfc9 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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;