Commit 117d8e49 authored by Nate Graham's avatar Nate Graham 🔩

Make Global Mute action a formal plasmoid.action

This allows it to appear in the context menu and to live in the header
row for the applet's system tray representation.
parent 043aa68f
......@@ -478,6 +478,9 @@ Item {
PlasmaComponents3.ToolButton {
id: globalMuteCheckbox
visible: !(plasmoid.containmentDisplayHints & PlasmaCore.Types.ContainmentDrawsPlasmoidHeading)
icon.name: "audio-volume-muted"
onClicked: {
if (!globalMute) {
......@@ -691,7 +694,17 @@ Item {
}
}
function action_forceMute() {
if (!globalMute) {
enableGlobalMute();
} else {
disableGlobalMute();
}
}
Component.onCompleted: {
MicrophoneIndicator.init();
plasmoid.setAction("forceMute", i18n("Force mute all playback devices"), "audio-volume-muted");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment