From 595e1527291e5fb094e7266facbfde5cc7c2dfc6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 29 Nov 2018 19:03:45 +0100 Subject: [PATCH] Remove AbstractAudio.toggle_muted --- qutebrowser/browser/browsertab.py | 3 --- qutebrowser/browser/commands.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index 48d69b198..690c978ff 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -720,9 +720,6 @@ class AbstractAudio(QObject): """Whether this tab is muted.""" 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: """Whether this tab has had audio playing recently.""" raise NotImplementedError diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index df6906515..9ad5e0011 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -2267,6 +2267,6 @@ class CommandDispatcher: if tab is None: return try: - tab.audio.toggle_muted(override=True) + tab.audio.set_muted(tab.audio.is_muted(), override=True) except browsertab.WebTabError as e: raise cmdutils.CommandError(e)