Change setting name

This commit is contained in:
cauimsouza 2018-09-05 02:59:03 +02:00
parent fc1d192880
commit a742f03bca
2 changed files with 10 additions and 5 deletions

View File

@ -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):

View File

@ -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: '