This commit is contained in:
Florian Bruhin 2018-09-28 18:16:13 +02:00
parent 19589c93b5
commit 628e4e8692
2 changed files with 4 additions and 2 deletions

View File

@ -283,7 +283,8 @@ def get_user_stylesheet(searching=False):
with open(filename, 'r', encoding='utf-8') as f:
css += f.read()
if not (config.val.scrolling.bar == 'always' or config.val.scrolling.bar == 'when_searching' and searching):
if (config.val.scrolling.bar == 'never' or
config.val.scrolling.bar == 'when_searching' and not searching):
css += '\nhtml > ::-webkit-scrollbar { width: 0px; height: 0px; }'
return css

View File

@ -292,7 +292,8 @@ class YamlConfig(QObject):
self._mark_changed()
self._migrate_bool(settings, 'tabs.favicons.show', 'always', 'never')
self._migrate_bool(settings, 'scrolling.bar', 'when_searching', 'never')
self._migrate_bool(settings, 'scrolling.bar',
'when_searching', 'never')
self._migrate_bool(settings, 'qt.force_software_rendering',
'software-opengl', 'none')