diff options
-rw-r--r-- | ranger/container/settings.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py index e08f18c6..6e5e44f1 100644 --- a/ranger/container/settings.py +++ b/ranger/container/settings.py @@ -83,13 +83,13 @@ ALLOWED_SETTINGS = { } ALLOWED_VALUES = { - 'confirm_on_delete': ['always', 'multiple', 'never'], + 'confirm_on_delete': ['multiple', 'always', 'never'], 'line_numbers': ['false', 'absolute', 'relative'], 'preview_images_method': ['w3m', 'iterm2', 'urxvt', 'urxvt-full'], - 'vcs_backend_bzr': ['enabled', 'local', 'disabled'], - 'vcs_backend_git': ['enabled', 'local', 'disabled'], - 'vcs_backend_hg': ['enabled', 'local', 'disabled'], - 'vcs_backend_svn': ['enabled', 'local', 'disabled'], + 'vcs_backend_bzr': ['disabled', 'local', 'enabled'], + 'vcs_backend_git': ['enabled', 'disabled', 'local'], + 'vcs_backend_hg': ['disabled', 'local', 'enabled'], + 'vcs_backend_svn': ['disabled', 'local', 'enabled'], 'viewmode': ['miller', 'multipane'], } @@ -116,6 +116,10 @@ class Settings(SignalDispatcher, FileManagerAware): priority=SIGNAL_PRIORITY_SANITIZE) self.signal_bind('setopt.' + name, self._raw_set_with_signal, priority=SIGNAL_PRIORITY_SYNC) + for name, values in ALLOWED_VALUES.items(): + assert values + assert name in ALLOWED_SETTINGS + self._raw_set(name, values[0]) def _sanitize(self, signal): name, value = signal.setting, signal.value |