From 002d7d3353350f4fb09af1cf9d46897aa795b08d Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 3 Jan 2024 02:19:17 +0100 Subject: [PATCH] Tray: don't notify when wallet is locked --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1f79f96..5e06315 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); }