on xenial help sign in
use "mute" on PC
commit621ae3ba8b3058c5e0f926c3d43fcbd153de2165 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 12 Aug 2016, 12:08 (10 years ago) parente1500e7
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 {