@@ -27,6 +27,10 @@ Item {
2727 readonly property int stepDown: -1
2828
2929 property var indicators // passed from Shell.qml
30+ readonly property bool showNotification: indicators && indicators.fullyOpened && indicators.currentIndicator === "indicator-sound"
31+ onShowNotificationChanged: { // disallow the volume notification when using the slider, lpbug#1484126
32+ actionGroup.indicatorsAction.updateState(root.showNotification);
33+ }
3034
3135 QDBusActionGroup {
3236 id: actionGroup
@@ -46,15 +50,5 @@ Item {
4650 actionGroup.actionObject.activate(stepDown);
4751 }
4852
49− Connections {
50− target: indicators // disallow the volume notification when using the slider, lpbug#1484126
51− onFullyOpenedChanged: {
52− actionGroup.indicatorsAction.updateState(indicators.fullyOpened && indicators.currentIndicator === "indicator-sound");
53− }
54− onCurrentIndicatorChanged: {
55− actionGroup.indicatorsAction.updateState(indicators.fullyOpened && indicators.currentIndicator === "indicator-sound");
56− }
57− }
58−
5953 Component.onCompleted: actionGroup.start()
6054}