diff options
author | toonn <toonn@toonn.io> | 2020-11-11 18:25:20 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-11-11 18:25:20 +0100 |
commit | 640f17c694160fbf219093fdaaf2f16d35ef360c (patch) | |
tree | c3327f9389f29f30c5f724182544208c2e27d383 /ranger | |
parent | eb9fbe6d3cf979dde232c4927ca31aa5c0259804 (diff) | |
parent | da075786e292f7ed9e498467cca6f108ec6a565f (diff) | |
download | ranger-640f17c694160fbf219093fdaaf2f16d35ef360c.tar.gz |
Merge branch 'politas-fix/1880-multipane-status'
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index fd44613e..4873c07a 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -42,6 +42,8 @@ class StatusBar(Widget): # pylint: disable=too-many-instance-attributes self.column = column self.settings.signal_bind('setopt.display_size_in_status_bar', self.request_redraw, weak=True) + self.fm.signal_bind('tab.layoutchange', self.request_redraw, weak=True) + self.fm.signal_bind('setop.viewmode', self.request_redraw, weak=True) def request_redraw(self): self.need_redraw = True @@ -52,9 +54,13 @@ class StatusBar(Widget): # pylint: disable=too-many-instance-attributes def clear_message(self): self.msg = None - def draw(self): + def draw(self): # pylint: disable=too-many-branches """Draw the statusbar""" + if self.column != self.fm.ui.browser.main_column: + self.column = self.fm.ui.browser.main_column + self.need_redraw = True + if self.hint and isinstance(self.hint, str): if self.old_hint != self.hint: self.need_redraw = True |