]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Tray: don't notify when wallet is locked
authortobtoht <tob@featherwallet.org>
Wed, 3 Jan 2024 01:19:17 +0000 (02:19 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 3 Jan 2024 01:19:17 +0000 (02:19 +0100)
src/MainWindow.cpp

index 1f79f96700af69eb9ac1f27f90e5b13a21c18e13..5e0631584ced071f7fb8bfeb6a7a7dd515a58727 100644 (file)
@@ -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);
        }