From 628e4e8692449ad61358f6f642073fc614ca47d5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 28 Sep 2018 18:16:13 +0200 Subject: [PATCH] Fix lint --- qutebrowser/browser/shared.py | 3 ++- qutebrowser/config/configfiles.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/shared.py b/qutebrowser/browser/shared.py index 7dfcda4bd..64fc9c508 100644 --- a/qutebrowser/browser/shared.py +++ b/qutebrowser/browser/shared.py @@ -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 diff --git a/qutebrowser/config/configfiles.py b/qutebrowser/config/configfiles.py index f49a40265..4d5cb47f8 100644 --- a/qutebrowser/config/configfiles.py +++ b/qutebrowser/config/configfiles.py @@ -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')