diff options
author | hut <hut@lavabit.com> | 2010-11-06 16:53:16 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-11-06 16:53:38 +0100 |
commit | 1906cb606f9aa199b65aa768863efd46b3cbe837 (patch) | |
tree | 8af3ae5fb0b2a3eb7dfb3b03745fc832d9d6153c | |
parent | fe1bf8548f6726ccb741ea2994edeca9085683f1 (diff) | |
download | ranger-1906cb606f9aa199b65aa768863efd46b3cbe837.tar.gz |
widgets.statusbar: Reload permissions of current file on change
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index dc169af2..e1cba8eb 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -78,9 +78,10 @@ class StatusBar(Widget): self.msg = None self.need_redraw = True - try: + if self.env.cf: + self.env.cf.load_if_outdated() ctime = self.env.cf.stat.st_ctime - except: + else: ctime = -1 if not self.result: |