From f44c4a886d8a984b6297a7847f87ef0e469e785b Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 6 Nov 2010 16:53:16 +0100 Subject: widgets.statusbar: Reload permissions of current file on change --- ranger/gui/widgets/statusbar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 6fff7383..c51af0ff 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: -- cgit 1.4.1-2-gfad0