From 840d6a2b02d33634f197dad8c33adb5b6d64b515 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 23 Jun 2022 12:41:16 +0200 Subject: [PATCH] Don't show donationNag on empty wallets --- src/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 266fd39..ff8fbfc 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;