mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 00:25:43 +00:00
Set freedesktop hint suppress-sound to the value of hints silent
This commit is contained in:
parent
4685c7fe21
commit
c027b43ee7
@ -69,6 +69,8 @@ void FreedesktopBackend::slotNotify(Notification noti)
|
|||||||
hints.insert(QLatin1String("desktop-entry"), noti.application().constHints().value("desktop-entry"));
|
hints.insert(QLatin1String("desktop-entry"), noti.application().constHints().value("desktop-entry"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hints.insert(QLatin1String("suppress-sound"), noti.constHints().value("silent").toBool());
|
||||||
|
|
||||||
uint updateId = 0;
|
uint updateId = 0;
|
||||||
if (noti.isUpdate()) {
|
if (noti.isUpdate()) {
|
||||||
updateId = noti.old().hints().privateValue(this, "id").toUInt();
|
updateId = noti.old().hints().privateValue(this, "id").toUInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user