Pass arguments to websettings init functions
This commit is contained in:
parent
df5fdb9864
commit
d99a7bd7ad
@ -405,7 +405,7 @@ def _init_modules(args, crash_handler):
|
||||
sessions.init(qApp)
|
||||
|
||||
log.init.debug("Initializing websettings...")
|
||||
websettings.init()
|
||||
websettings.init(args)
|
||||
|
||||
log.init.debug("Initializing adblock...")
|
||||
host_blocker = adblock.HostBlocker()
|
||||
|
@ -106,7 +106,7 @@ def update_settings(section, option):
|
||||
_init_stylesheet(profile)
|
||||
|
||||
|
||||
def init():
|
||||
def init(_args):
|
||||
"""Initialize the global QWebSettings."""
|
||||
if config.get('general', 'developer-extras'):
|
||||
# FIXME:qtwebengine Make sure we call globalSettings *after* this...
|
||||
|
@ -102,7 +102,7 @@ def update_settings(section, option):
|
||||
websettings.update_mappings(MAPPINGS, section, option)
|
||||
|
||||
|
||||
def init():
|
||||
def init(_args):
|
||||
"""Initialize the global QWebSettings."""
|
||||
cache_path = standarddir.cache()
|
||||
data_path = standarddir.data()
|
||||
|
@ -259,14 +259,14 @@ def update_mappings(mappings, section, option):
|
||||
mapping.set(value)
|
||||
|
||||
|
||||
def init():
|
||||
def init(args):
|
||||
"""Initialize all QWeb(Engine)Settings."""
|
||||
if objreg.get('args').backend == 'webengine':
|
||||
if args.backend == 'webengine':
|
||||
from qutebrowser.browser.webengine import webenginesettings
|
||||
webenginesettings.init()
|
||||
webenginesettings.init(args)
|
||||
else:
|
||||
from qutebrowser.browser.webkit import webkitsettings
|
||||
webkitsettings.init()
|
||||
webkitsettings.init(args)
|
||||
|
||||
|
||||
def shutdown():
|
||||
|
Loading…
Reference in New Issue
Block a user