on xenial help sign in
Rather use onOpacityChanged() than onVisibleChanged() to trigger playing of notification-sound.
commit48481d4237443001f154c4e7cd05da3a4e5734ae authorMirco Müller <mirco.mueller@canonical.com> dateTue 17 Jun 2014, 16:19 (12 years ago) parent243492d
1 file changed+2−2
qml/Notifications/Notification.qml+2−2
qml/Notifications/Notification.qml+2−2
@@ -73,8 +73,8 @@ Item {
7373 source: hints["suppress-sound"] != "" ? hints["sound-file"] : undefined
7474 }
7575
76− onVisibleChanged: {
77− if (visible == true && sound.source != undefined) {
76+ onOpacityChanged: {
77+ if (opacity == 1.0 && hints["suppress-sound"] != "true" && sound.source != undefined) {
7878 sound.play()
7979 }
8080 }