~nick-dedekind/unity8/side-stage-redesign-tutorial

« back to all changes in this revision

Viewing changes to qml/Components/VolumeControl.qml

  • Committer: Nick Dedekind
  • Date: 2015-12-14 18:06:18 UTC
  • mfrom: (1998.1.101 unity8)
  • Revision ID: nick.dedekind@canonical.com-20151214180618-men18zbauv1r153m
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    GlobalShortcut {
37
37
        id: muteShortcut
38
38
        shortcut: Qt.Key_VolumeMute
39
 
        Keys.onPressed: toggleMute()
 
39
        onTriggered: toggleMute()
40
40
    }
41
41
 
42
42
    QMenuModel.QDBusActionGroup {
46
46
        objectPath: "/com/canonical/indicator/sound"
47
47
 
48
48
        property variant actionObject: action("volume")
49
 
        property variant muteActionObject: action("mute")
 
49
        property variant muteActionObject: indicators.indicatorsModel.profile === "desktop" ? action("mute") : action("silent-mode")
50
50
        property variant indicatorsAction: action("indicator-shown")
51
51
    }
52
52