Hide harfbuzz warning if frozen

This commit is contained in:
Florian Bruhin 2016-07-27 12:15:10 +02:00
parent 7b82d81784
commit 0eb74dcc1b

View File

@ -170,8 +170,11 @@ def fix_harfbuzz(args):
from qutebrowser.utils import log
from PyQt5.QtCore import qVersion
if 'PyQt5.QtWidgets' in sys.modules:
log.init.warning("Harfbuzz fix attempted but QtWidgets is already "
"imported!")
msg = "Harfbuzz fix attempted but QtWidgets is already imported!"
if getattr(sys, 'frozen', False):
log.init.debug(msg)
else:
log.init.warning(msg)
if sys.platform.startswith('linux') and args.harfbuzz == 'auto':
if qVersion() == '5.3.0':
log.init.debug("Using new harfbuzz engine (auto)")