]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Don't show donationNag on empty wallets
authortobtoht <thotbot@protonmail.com>
Thu, 23 Jun 2022 10:41:16 +0000 (12:41 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 23 Jun 2022 10:41:16 +0000 (12:41 +0200)
src/MainWindow.cpp

index 266fd39941dd4d775302f4d8331c380352e83bde..ff8fbfc9eab3175654779417c2e57f854873628c 100644 (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;