Change setting name
This commit is contained in:
parent
fc1d192880
commit
a742f03bca
@ -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):
|
||||
|
@ -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: '
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user