fix: Toggle notification sound functionality

This commit is contained in:
Hannes
2026-08-28 12:41:31 +02:00
parent f2e8d8a144
commit 8352ba5a56
2 changed files with 12 additions and 11 deletions
@@ -12,6 +12,7 @@ Item {
property var focusedMonitor: null
property var newestNotification: null
property bool soundEnabled: true
signal notificationReceived(var notification)
@@ -81,7 +82,7 @@ Item {
onTriggered: {
focusedMonitor = Hyprland.focusedMonitor
notificationReceived(notification)
if(!notification.lastGeneration){
if(!notification.lastGeneration && notificationServerState.soundEnabled){
notificationSound.play()
}