Change setting name
This commit is contained in:
parent
fc1d192880
commit
a742f03bca
@ -654,8 +654,8 @@ class WebEngineAudio(browsertab.AbstractAudio):
|
|||||||
|
|
||||||
@pyqtSlot(QUrl)
|
@pyqtSlot(QUrl)
|
||||||
def _on_url_changed(self, url):
|
def _on_url_changed(self, url):
|
||||||
is_audible = config.instance.get('content.audible_default', url=url)
|
mute = config.instance.get('content.mute', url=url)
|
||||||
self.set_muted(not is_audible)
|
self.set_muted(mute)
|
||||||
|
|
||||||
|
|
||||||
class _WebEnginePermissions(QObject):
|
class _WebEnginePermissions(QObject):
|
||||||
|
@ -746,11 +746,16 @@ content.xss_auditing:
|
|||||||
Suspicious scripts will be blocked and reported in the inspector's
|
Suspicious scripts will be blocked and reported in the inspector's
|
||||||
JavaScript console.
|
JavaScript console.
|
||||||
|
|
||||||
content.audible_default:
|
content.mute:
|
||||||
default: true
|
default: false
|
||||||
type: Bool
|
type: Bool
|
||||||
desc: Play sounds automatically in web pages.
|
|
||||||
supports_pattern: true
|
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: '
|
# emacs: '
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user