[Linux] Add setting to disable notifications

This commit is contained in:
Tim Gromeyer
2025-04-22 13:06:20 +02:00
committed by Tim Gromeyer
parent ec1b0c47ca
commit 913e1a5aff
4 changed files with 34 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ TrayIconManager::TrayIconManager(QObject *parent) : QObject(parent)
void TrayIconManager::showNotification(const QString &title, const QString &message)
{
if (!m_notificationsEnabled)
return;
trayIcon->showMessage(title, message, QSystemTrayIcon::Information, 3000);
}