use empty string instead
This commit is contained in:
parent
ccf230c169
commit
a7ef2259c9
|
|
@ -174,8 +174,6 @@ class StatusBar(QWidget):
|
||||||
|
|
||||||
self.txt = textbase.TextBase()
|
self.txt = textbase.TextBase()
|
||||||
self._stack.addWidget(self.txt)
|
self._stack.addWidget(self.txt)
|
||||||
if not config.val.statusbar.mode_text:
|
|
||||||
self.txt.hide()
|
|
||||||
|
|
||||||
self.cmd.show_cmd.connect(self._show_cmd_widget)
|
self.cmd.show_cmd.connect(self._show_cmd_widget)
|
||||||
self.cmd.hide_cmd.connect(self._hide_cmd_widget)
|
self.cmd.hide_cmd.connect(self._hide_cmd_widget)
|
||||||
|
|
@ -234,11 +232,6 @@ class StatusBar(QWidget):
|
||||||
self._set_hbox_padding()
|
self._set_hbox_padding()
|
||||||
elif option == 'statusbar.widgets':
|
elif option == 'statusbar.widgets':
|
||||||
self._draw_widgets()
|
self._draw_widgets()
|
||||||
elif option == 'statusbar.mode_text':
|
|
||||||
if not config.val.statusbar.mode_text:
|
|
||||||
self.txt.hide()
|
|
||||||
else:
|
|
||||||
self.txt.show()
|
|
||||||
|
|
||||||
def _draw_widgets(self):
|
def _draw_widgets(self):
|
||||||
"""Draw statusbar widgets."""
|
"""Draw statusbar widgets."""
|
||||||
|
|
@ -351,6 +344,9 @@ class StatusBar(QWidget):
|
||||||
|
|
||||||
def _set_mode_text(self, mode):
|
def _set_mode_text(self, mode):
|
||||||
"""Set the mode text."""
|
"""Set the mode text."""
|
||||||
|
if not config.val.statusbar.mode_text:
|
||||||
|
self.txt.setText('')
|
||||||
|
return;
|
||||||
if mode == 'passthrough':
|
if mode == 'passthrough':
|
||||||
key_instance = config.key_instance
|
key_instance = config.key_instance
|
||||||
all_bindings = key_instance.get_reverse_bindings_for('passthrough')
|
all_bindings = key_instance.get_reverse_bindings_for('passthrough')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue