Skip to content

Commit c575a29

Browse files
sm02llsm
andauthored
The middle click toggles the sound and places the microphone in the same state. #11255 (#11256)
Co-authored-by: sm <sm@portsao>
1 parent 6a7f3a6 commit c575a29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,8 +1202,9 @@ class CinnamonSoundApplet extends Applet.TextIconApplet {
12021202
//mute or play / pause players on middle click
12031203
if (buttonId === 2) {
12041204
if (this.middleClickAction === "mute") {
1205+
if (this._output.is_muted === this._input.is_muted)
1206+
this._toggle_in_mute();
12051207
this._toggle_out_mute();
1206-
this._toggle_in_mute();
12071208
} else if (this.middleClickAction === "out_mute")
12081209
this._toggle_out_mute();
12091210
else if (this.middleClickAction === "in_mute")

0 commit comments

Comments
 (0)