on xenial help sign in
hide the volume notification when the indicator is shown
commita0f1cb9845629e0e8227deb90f1bffd6037a1f2b authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 19 Aug 2015, 18:33 (11 years ago) parent2ef5ca5
1 file changed+11
qml/Components/VolumeControl.qml+11
qml/Components/VolumeControl.qml+11
@@ -33,6 +33,7 @@ Item {
3333 objectPath: "/com/canonical/indicator/sound"
3434
3535 property variant actionObject: action("volume")
36+ property variant indicatorsAction: action("indicator-shown")
3637 }
3738
3839 function volumeUp() {
@@ -43,5 +44,15 @@ Item {
4344 actionGroup.actionObject.activate(stepDown);
4445 }
4546
47+ Connections {
48+ target: panel.indicators
49+ onFullyOpenedChanged: { // disallow the volume notification when using the slider
50+ if (target.fullyOpened)
51+ actionGroup.indicatorsAction.updateState(true)
52+ else
53+ actionGroup.indicatorsAction.updateState(false)
54+ }
55+ }
56+
4657 Component.onCompleted: actionGroup.start()
4758}