Log which dictionaries have been found

See #3166
This commit is contained in:
Florian Bruhin 2017-10-20 07:14:32 +02:00
parent 378498bbd7
commit 455b90ecad

View File

@ -36,7 +36,8 @@ from PyQt5.QtWebEngineWidgets import (QWebEngineSettings, QWebEngineProfile,
from qutebrowser.browser import shared from qutebrowser.browser import shared
from qutebrowser.browser.webengine import spell from qutebrowser.browser.webengine import spell
from qutebrowser.config import config, websettings from qutebrowser.config import config, websettings
from qutebrowser.utils import utils, standarddir, javascript, qtutils, message from qutebrowser.utils import (utils, standarddir, javascript, qtutils, message,
log)
# The default QWebEngineProfile # The default QWebEngineProfile
default_profile = None default_profile = None
@ -145,6 +146,7 @@ class DictionaryLanguageSetter(DefaultProfileSetter):
raise ValueError("'settings' may not be set with " raise ValueError("'settings' may not be set with "
"DictionaryLanguageSetter!") "DictionaryLanguageSetter!")
filenames = [self._find_installed(code) for code in value] filenames = [self._find_installed(code) for code in value]
log.config.debug("Found dicts: {}".format(filenames))
super()._set([f for f in filenames if f], settings) super()._set([f for f in filenames if f], settings)