diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-20 15:46:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-20 15:46:57 +0000 |
commit | 917739023a7acaae3645bbfd27ed454df3c5be33 (patch) | |
tree | 4e205849ae64ccd4d1797a1ad7579416f69f52ee /pgcli/pgtoolbar.py | |
parent | Adding upstream version 3.4.1. (diff) | |
download | pgcli-917739023a7acaae3645bbfd27ed454df3c5be33.tar.xz pgcli-917739023a7acaae3645bbfd27ed454df3c5be33.zip |
Adding upstream version 3.5.0.upstream/3.5.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pgcli/pgtoolbar.py')
-rw-r--r-- | pgcli/pgtoolbar.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pgcli/pgtoolbar.py b/pgcli/pgtoolbar.py index 41f903d..7b5883e 100644 --- a/pgcli/pgtoolbar.py +++ b/pgcli/pgtoolbar.py @@ -47,10 +47,15 @@ def create_toolbar_tokens_func(pgcli): if pgcli.vi_mode: result.append( - ("class:bottom-toolbar", "[F4] Vi-mode (" + _get_vi_mode() + ")") + ("class:bottom-toolbar", "[F4] Vi-mode (" + _get_vi_mode() + ") ") ) else: - result.append(("class:bottom-toolbar", "[F4] Emacs-mode")) + result.append(("class:bottom-toolbar", "[F4] Emacs-mode ")) + + if pgcli.explain_mode: + result.append(("class:bottom-toolbar", "[F5] Explain: ON ")) + else: + result.append(("class:bottom-toolbar", "[F5] Explain: OFF ")) if pgcli.pgexecute.failed_transaction(): result.append( |