diff options
author | hut <hut@lavabit.com> | 2010-04-26 22:55:35 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-26 22:55:35 +0200 |
commit | f1a454b00d5e75eed3843d750c7e7d38d2a50269 (patch) | |
tree | 5f0b6209d1ccaf3184c73110736432849bcd2d68 | |
parent | 85ff35500c1591b3924fc3bf13b92b6fe9e0b5b6 (diff) | |
download | ranger-f1a454b00d5e75eed3843d750c7e7d38d2a50269.tar.gz |
defaults.apps: use "f = c.file" in the example
-rw-r--r-- | ranger/defaults/apps.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 5ffbdaf5..93fed45d 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -35,10 +35,11 @@ This example modifies the behaviour of "feh" and adds a custom media player: return tup('feh', '-F', *c) def app_default(self, c): - if c.file.video or c.file.audio: + f = c.file #shortcut + if f.video or f.audio: return self.app_kaffeine(c) - if c.file.image and c.mode == 0: + if f.image and c.mode == 0: return self.app_feh_fullscreen_by_default(c) return DefaultApps.app_default(self, c) |