summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/hints.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-12-03 11:58:41 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-12-03 12:04:59 +0100
commit4435ef928796fa744be5452924a103bb2e58ee8e (patch)
tree73f99cf693fa492ce22e228d16fc1a7eff540e81 /qutebrowser/browser/hints.py
parentb84d68e8ee22cb1679799c9ca73397e81110ea34 (diff)
downloadqutebrowser-4435ef928796fa744be5452924a103bb2e58ee8e.tar.gz
qutebrowser-4435ef928796fa744be5452924a103bb2e58ee8e.zip
pylint: Enable else-if-usedpylint-2-12
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r--qutebrowser/browser/hints.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py
index 6ac44adbc..64062bbc6 100644
--- a/qutebrowser/browser/hints.py
+++ b/qutebrowser/browser/hints.py
@@ -596,6 +596,7 @@ class HintManager(QObject):
"'args' is required with target userscript/spawn/run/"
"fill.")
else:
+ # pylint: disable=else-if-used
if args:
raise cmdutils.CommandError(
"'args' is only allowed with target userscript/spawn.")
@@ -870,12 +871,11 @@ class HintManager(QObject):
label.update_text(matched, rest)
# Show label again if it was hidden before
label.show()
- else:
+ elif (not self._context.rapid or
+ config.val.hints.hide_unmatched_rapid_hints):
# element doesn't match anymore -> hide it, unless in rapid
# mode and hide_unmatched_rapid_hints is false (see #1799)
- if (not self._context.rapid or
- config.val.hints.hide_unmatched_rapid_hints):
- label.hide()
+ label.hide()
except webelem.Error:
pass
self._handle_auto_follow(keystr=keystr)