mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
Tray: don't notify when wallet is locked
This commit is contained in:
parent
832d39f61b
commit
002d7d3353
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ void MainWindow::initWalletContext() {
|
||||||
connect(m_wallet, &Wallet::walletPassphraseNeeded, this, &MainWindow::onWalletPassphraseNeeded);
|
connect(m_wallet, &Wallet::walletPassphraseNeeded, this, &MainWindow::onWalletPassphraseNeeded);
|
||||||
|
|
||||||
connect(m_wallet, &Wallet::unconfirmedMoneyReceived, this, [this](const QString &txId, uint64_t amount){
|
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));
|
auto notify = QString("%1 XMR (pending)").arg(WalletManager::displayAmount(amount, false));
|
||||||
m_windowManager->notify("Payment received", notify, 5000);
|
m_windowManager->notify("Payment received", notify, 5000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue