mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-03 00:29:16 +00:00
[Linux] Add setting to disable notifications
This commit is contained in:
committed by
Tim Gromeyer
parent
ec1b0c47ca
commit
913e1a5aff
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user