on xenial help sign in
On the PC platform (as opposed to running on $devices), use the "mute" action instead of silent mode

Approved by: Albert Astals Cid, Unity8 CI Bot

commitf7a99a57f8d4bd90140e27bbe6ac61a97e070a22 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 13 Sep 2016, 06:51 (10 years ago) parent8c0d38068ed6f0
2 files changed+2−4
qml/Components/VolumeControl.qml+2−3 qml/Shell.qml−1
qml/Components/VolumeControl.qml+2−3
@@ -17,6 +17,7 @@
1717import QtQuick 2.4
1818import QMenuModel 0.1 as QMenuModel
1919import GlobalShortcut 1.0
20+import Unity.Platform 1.0
2021
2122Item {
2223 id: root
@@ -27,8 +28,6 @@ Item {
2728 readonly property int stepUp: 1
2829 readonly property int stepDown: -1
2930
30− property var indicators // passed from Shell.qml
31−
3231 GlobalShortcut {
3332 id: muteShortcut
3433 shortcut: Qt.Key_VolumeMute
@@ -42,7 +41,7 @@ Item {
4241 objectPath: "/com/canonical/indicator/sound"
4342
4443 property variant actionObject: action("volume")
45− property variant muteActionObject: indicators.indicatorsModel.profile === "desktop" ? action("mute") : action("silent-mode")
44+ property variant muteActionObject: Platform.isPC ? action("mute") : action("silent-mode")
4645 }
4746
4847 function volumeUp() {
qml/Shell.qml−1
@@ -177,7 +177,6 @@ StyledItem {
177177
178178 VolumeControl {
179179 id: volumeControl
180− indicators: panel.indicators
181180 }
182181
183182 DashCommunicator {