Remove AbstractAudio.toggle_muted
This commit is contained in:
parent
c7179e35cc
commit
595e152729
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user