From a742f03bca4dfe1a24caec4f77f3f728be196814 Mon Sep 17 00:00:00 2001 From: cauimsouza Date: Wed, 5 Sep 2018 02:59:03 +0200 Subject: [PATCH] Change setting name --- qutebrowser/browser/webengine/webenginetab.py | 4 ++-- qutebrowser/config/configdata.yml | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index e3e8520c2..e962f8f29 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -654,8 +654,8 @@ class WebEngineAudio(browsertab.AbstractAudio): @pyqtSlot(QUrl) def _on_url_changed(self, url): - is_audible = config.instance.get('content.audible_default', url=url) - self.set_muted(not is_audible) + mute = config.instance.get('content.mute', url=url) + self.set_muted(mute) class _WebEnginePermissions(QObject): diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 73af245c0..51dae63f5 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -746,11 +746,16 @@ content.xss_auditing: Suspicious scripts will be blocked and reported in the inspector's JavaScript console. -content.audible_default: - default: true +content.mute: + default: false type: Bool - desc: Play sounds automatically in web pages. supports_pattern: true + desc: >- + Mute new web pages. + + It's off by default meaning that new web pages might play sounds. + It's possible to set this configuration differently for different + URLs. # emacs: '