fix: Toggle notification sound functionality

This commit is contained in:
Hannes committed 2026-08-28 12:41:31 +02:00
1 parent f2e8d8a144
commit 8352ba5a56
2 files changed
+12 -11

No files matched your search

@@ -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()
}