diff options
-rw-r--r-- | ranger/core/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/shared.py b/ranger/core/shared.py index 7b679bb0..9d5ca379 100644 --- a/ranger/core/shared.py +++ b/ranger/core/shared.py @@ -54,7 +54,7 @@ class SettingsAware(Awareness): after_setting_preview_script, priority=1) def after_setting_use_preview_script(signal): if signal.fm.settings.preview_script is None and signal.value \ - and not signal.previous: + and signal.fm.ui.is_on: signal.fm.notify("Preview script undefined or not found!", bad=True) settings.signal_bind('setopt.use_preview_script', |