Remove AbstractAudio.toggle_muted

This commit is contained in:
Florian Bruhin 2018-11-29 19:03:45 +01:00
parent c7179e35cc
commit 595e152729
2 changed files with 1 additions and 4 deletions

View File

@ -720,9 +720,6 @@ class AbstractAudio(QObject):
"""Whether this tab is muted.""" """Whether this tab is muted."""
raise NotImplementedError raise NotImplementedError
def toggle_muted(self, *, override: bool = False) -> None:
self.set_muted(not self.is_muted(), override=override)
def is_recently_audible(self) -> bool: def is_recently_audible(self) -> bool:
"""Whether this tab has had audio playing recently.""" """Whether this tab has had audio playing recently."""
raise NotImplementedError raise NotImplementedError

View File

@ -2267,6 +2267,6 @@ class CommandDispatcher:
if tab is None: if tab is None:
return return
try: try:
tab.audio.toggle_muted(override=True) tab.audio.set_muted(tab.audio.is_muted(), override=True)
except browsertab.WebTabError as e: except browsertab.WebTabError as e:
raise cmdutils.CommandError(e) raise cmdutils.CommandError(e)