Show all leave-mode bindings in statusbar in passthrough mode

Fixes #4921
This commit is contained in:
Florian Bruhin 2019-07-19 15:55:52 +02:00
parent 81a5ada67f
commit 898544b2c4
2 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,15 @@ breaking changes (such as renamed commands) can happen in minor releases.
// `Fixed` for any bug fixes.
// `Security` to invite users to upgrade in case of vulnerabilities.
v1.8.0 (unreleased)
-------------------
Changed
~~~~~~~
- The statusbar text for passthrough mode now shows all configured bindings to
leave the mode, not only one.
v1.7.0 (2019-07-18)
-------------------

View File

@ -308,7 +308,7 @@ class StatusBar(QWidget):
all_bindings = key_instance.get_reverse_bindings_for('passthrough')
bindings = all_bindings.get('leave-mode')
if bindings:
suffix = ' ({} to leave)'.format(bindings[0])
suffix = ' ({} to leave)'.format(' or '.join(bindings))
else:
suffix = ''
else: