handle difference between "mute" and "silent mode" actions
commit73ed98231cf11ed0a52574ba9dda220fd49b825d
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateWed 18 Nov 2015, 16:07 (11 years ago)
parentfdd4adc
qml/Components/VolumeControl.qml+2−2
@@ -36,7 +36,7 @@ Item {
3636 GlobalShortcut {
3737 id: muteShortcut
3838 shortcut: Qt.Key_VolumeMute
39− Keys.onPressed: toggleMute()
39+ onTriggered: toggleMute()
4040 }
4141
4242 QMenuModel.QDBusActionGroup {
@@ -46,7 +46,7 @@ Item {
4646 objectPath: "/com/canonical/indicator/sound"
4747
4848 property variant actionObject: action("volume")
49− property variant muteActionObject: action("mute")
49+ property variant muteActionObject: indicators.indicatorsModel.profile === "desktop" ? action("mute") : action("silent-mode")
5050 property variant indicatorsAction: action("indicator-shown")
5151 }
5252