Fix lint
This commit is contained in:
parent
19589c93b5
commit
628e4e8692
@ -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
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user