Tray: don't notify when wallet is locked

This commit is contained in:
tobtoht 2024-01-03 02:19:17 +01:00
parent 832d39f61b
commit 002d7d3353
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View 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);
}