on xenial help sign in
Rather use onOpacityChanged() than onVisibleChanged() to trigger playing of notification-sound.
48481d4Mirco Müller
qml/Notifications/Notification.qml+2−2
@@ -73,8 +73,8 @@ Item {
73 source: hints["suppress-sound"] != "" ? hints["sound-file"] : undefined
73 source: hints["suppress-sound"] != "" ? hints["sound-file"] : undefined
74 }
74 }
75
75
76− onVisibleChanged: {
76+ onOpacityChanged: {
77− if (visible == true && sound.source != undefined) {
77+ if (opacity == 1.0 && hints["suppress-sound"] != "true" && sound.source != undefined) {
78 sound.play()
78 sound.play()
79 }
79 }
80 }
80 }