Fix lint
This commit is contained in:
parent
232fd19422
commit
6465d64738
@ -193,8 +193,8 @@ class ProfileSetter:
|
|||||||
subframes=False):
|
subframes=False):
|
||||||
"""Inject the given script to run early on a page load.
|
"""Inject the given script to run early on a page load.
|
||||||
|
|
||||||
This runs the script both on DocumentCreation and DocumentReady as on some
|
This runs the script both on DocumentCreation and DocumentReady as on
|
||||||
internal pages, DocumentCreation will not work.
|
some internal pages, DocumentCreation will not work.
|
||||||
|
|
||||||
That is a WORKAROUND for https://bugreports.qt.io/browse/QTBUG-66011
|
That is a WORKAROUND for https://bugreports.qt.io/browse/QTBUG-66011
|
||||||
"""
|
"""
|
||||||
@ -279,14 +279,15 @@ class ProfileSetter:
|
|||||||
self._profile.setPersistentCookiesPolicy(value)
|
self._profile.setPersistentCookiesPolicy(value)
|
||||||
|
|
||||||
def set_dictionary_language(self, warn=True):
|
def set_dictionary_language(self, warn=True):
|
||||||
|
"""Load the given dictionaries."""
|
||||||
filenames = []
|
filenames = []
|
||||||
for code in config.val.spellcheck.languages or []:
|
for code in config.val.spellcheck.languages or []:
|
||||||
local_filename = spell.local_filename(code)
|
local_filename = spell.local_filename(code)
|
||||||
if not local_filename:
|
if not local_filename:
|
||||||
if warn:
|
if warn:
|
||||||
message.warning(
|
message.warning("Language {} is not installed - see "
|
||||||
"Language {} is not installed - see scripts/dictcli.py "
|
"scripts/dictcli.py in qutebrowser's "
|
||||||
"in qutebrowser's sources".format(code))
|
"sources".format(code))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
filenames.append(local_filename)
|
filenames.append(local_filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user