From: tobtoht Date: Wed, 3 Jan 2024 01:19:17 +0000 (+0100) Subject: Tray: don't notify when wallet is locked X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=002d7d3353350f4fb09af1cf9d46897aa795b08d;p=gamesguru%2Ffeather.git Tray: don't notify when wallet is locked --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1f79f967..5e063158 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -469,7 +469,7 @@ void MainWindow::initWalletContext() { connect(m_wallet, &Wallet::walletPassphraseNeeded, this, &MainWindow::onWalletPassphraseNeeded); connect(m_wallet, &Wallet::unconfirmedMoneyReceived, this, [this](const QString &txId, uint64_t amount){ - if (m_wallet->isSynchronized()) { + if (m_wallet->isSynchronized() && !m_locked) { auto notify = QString("%1 XMR (pending)").arg(WalletManager::displayAmount(amount, false)); m_windowManager->notify("Payment received", notify, 5000); }