1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

notifications: fix dnd tooltip & silence sounds on do not disturb

This commit is contained in:
bbedward
2025-10-16 21:30:45 -04:00
parent d4b13ef46b
commit b9d5deb2ae
2 changed files with 19 additions and 33 deletions

View File

@@ -342,13 +342,13 @@ Singleton {
}
function playNormalNotificationSound() {
if (soundsAvailable && normalNotificationSound) {
if (soundsAvailable && normalNotificationSound && !SessionData.doNotDisturb) {
normalNotificationSound.play()
}
}
function playCriticalNotificationSound() {
if (soundsAvailable && criticalNotificationSound) {
if (soundsAvailable && criticalNotificationSound && !SessionData.doNotDisturb) {
criticalNotificationSound.play()
}
}