Skip to content

Commit

Permalink
sound applet: Fixes #12035
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux authored Jan 18, 2024
1 parent d459e56 commit 181cc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/usr/share/cinnamon/applets/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ class CinnamonSoundApplet extends Applet.TextIconApplet {
if (buttonId === 2) {
if (shiftPressed) {
if (this.middleShiftClickAction === "mute") {
if (this._output.is_muted === this._input.is_muted)
if (this._input && this._output && this._output.is_muted === this._input.is_muted)
this._toggle_in_mute();
this._toggle_out_mute();
} else if (this.middleShiftClickAction === "out_mute")
Expand All @@ -1239,7 +1239,7 @@ class CinnamonSoundApplet extends Applet.TextIconApplet {
this._players[this._activePlayer]._mediaServerPlayer.PlayPauseRemote();
} else {
if (this.middleClickAction === "mute") {
if (this._output.is_muted === this._input.is_muted)
if (this._input && this._output && this._output.is_muted === this._input.is_muted)
this._toggle_in_mute();
this._toggle_out_mute();
} else if (this.middleClickAction === "out_mute")
Expand Down

0 comments on commit 181cc7a

Please sign in to comment.