about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMyk <politas@gmail.com>2020-08-01 22:04:52 +1000
committerMyk <politas@gmail.com>2020-08-01 22:04:52 +1000
commitc5229b4f56c1c6fb6ec3bc5c6e7c621fa53cfe05 (patch)
tree6ada8f3f12354be063b058ec361f90f26016b183
parent1481d2a6136052ceb5f4410e2922564229721cb4 (diff)
downloadranger-c5229b4f56c1c6fb6ec3bc5c6e7c621fa53cfe05.tar.gz
Handle all column changes
-rw-r--r--ranger/gui/widgets/statusbar.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 6499135f..b3484ac4 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -43,6 +43,7 @@ class StatusBar(Widget):  # pylint: disable=too-many-instance-attributes
         self.settings.signal_bind('setopt.display_size_in_status_bar',
                                   self.request_redraw, weak=True)
         self.fm.signal_bind('tab.change', self.request_redraw, weak=True)
+        self.fm.signal_bind('setop.viewmode', self.request_redraw, weak=True)
 
     def request_redraw(self):
         self.need_redraw = True
@@ -56,10 +57,9 @@ class StatusBar(Widget):  # pylint: disable=too-many-instance-attributes
     def draw(self):  # pylint: disable=too-many-branches
         """Draw the statusbar"""
 
-        if self.fm.ui.viewmode == self.fm.ui.ALLOWED_VIEWMODES[1]:
-            if self.column != self.fm.ui.browser.main_column:
-                self.column = self.fm.ui.browser.main_column
-                self.need_redraw = True
+        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: