Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 219ec3e

Browse files
committed
Fix tab muting
1 parent 398e7f0 commit 219ec3e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/bg/ui/tabs/manager.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,8 @@ class Tab extends EventEmitter {
235235
}
236236

237237
toggleMuted () {
238-
let isMuted = this.panes.reduce((v, pane) => v || pane.isAudioMuted, false)
239-
for (let pane of this.panes) {
240-
pane.setAudioMuted(!isMuted)
241-
}
238+
this.activePane.toggleMuted()
239+
this.emitTabUpdateState(this.activePane)
242240
}
243241

244242
// panes

app/bg/ui/tabs/pane.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ export class Pane extends EventEmitter {
425425

426426
toggleMuted () {
427427
this.webContents.setAudioMuted(!this.isAudioMuted)
428-
this.emitUpdateState()
429428
}
430429

431430
async captureScreenshot () {

app/fg/shell-window/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ ${spinnerCSS}
491491
.fa-volume-up,
492492
.fa-volume-mute {
493493
position: absolute;
494-
top: 8px;
494+
top: 6px;
495495
right: 10px;
496496
font-size: 12px;
497497
color: rgba(0,0,0,.6);

0 commit comments

Comments
 (0)