diff options
author | hut <hut@lavabit.com> | 2011-10-01 22:32:50 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-01 22:32:50 +0200 |
commit | 03d7f28e1e73a61e4d3524eec26bbab441295fdf (patch) | |
tree | 7cf22b9e0460537d2702c48129fe2c7a83780bf8 /ranger | |
parent | 524cbddab36206d3e6f13d50d30c2289bfcde722 (diff) | |
download | ranger-03d7f28e1e73a61e4d3524eec26bbab441295fdf.tar.gz |
core.shared: silence a warning when using ranger as root
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/shared.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/shared.py b/ranger/core/shared.py index 38dc7cdd..ce7c3184 100644 --- a/ranger/core/shared.py +++ b/ranger/core/shared.py @@ -63,7 +63,8 @@ class SettingsAware(Awareness): settings.signal_bind('setopt.preview_script', after_setting_preview_script, priority=1) def after_setting_use_preview_script(signal): - if signal.fm.settings.preview_script is None and signal.value: + if signal.fm.settings.preview_script is None and signal.value \ + and not signal.previous: signal.fm.notify("Preview script undefined or not found!", bad=True) settings.signal_bind('setopt.use_preview_script', |