diff options
-rw-r--r-- | ranger/shared/settings.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index 55259218..b7f840f4 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -120,12 +120,6 @@ class SettingsAware(object): settings.signal_bind('setopt.colorscheme', _colorscheme_name_to_class, priority=1) - from ranger.defaults import options as default_options - settings._setting_sources.append(default_options) - assert all(hasattr(default_options, setting) \ - for setting in ALLOWED_SETTINGS), \ - "Ensure that all options are defined in the defaults!" - if not ranger.arg.clean: # overwrite single default options with custom options try: @@ -146,6 +140,12 @@ class SettingsAware(object): except AttributeError: pass + from ranger.defaults import options as default_options + settings._setting_sources.append(default_options) + assert all(hasattr(default_options, setting) \ + for setting in ALLOWED_SETTINGS), \ + "Ensure that all options are defined in the defaults!" + try: import apps except ImportError: |