utils: use tray for desktop notification

This commit is contained in:
tobtoht
2023-03-29 10:46:53 +02:00
parent 6b065acdae
commit 37153356ee
5 changed files with 21 additions and 36 deletions
+1 -1
View File
@@ -432,7 +432,7 @@ void MainWindow::initWalletContext() {
connect(m_wallet, &Wallet::unconfirmedMoneyReceived, this, [this](const QString &txId, uint64_t amount){
if (m_wallet->isSynchronized()) {
auto notify = QString("%1 XMR (pending)").arg(WalletManager::displayAmount(amount, false));
Utils::desktopNotify("Payment received", notify, 5000);
m_windowManager->notify("Payment received", notify, 5000);
}
});