diff options
author | nfnty <git@nfnty.se> | 2017-02-01 22:32:28 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-01 22:34:36 +0100 |
commit | 096ebc82d6084b2aafb6da8c77f2f090c9621f69 (patch) | |
tree | 509bbb8ef8a601d315d8de5614820a1669f44c42 /ranger | |
parent | 0280ea6e037e7aa2459e46e9b5c940ef152bdeda (diff) | |
download | ranger-096ebc82d6084b2aafb6da8c77f2f090c9621f69.tar.gz |
container.directory.Directory: Resort directly after setting changes
Fixes #707
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/directory.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py index dee047f1..b23abe04 100644 --- a/ranger/container/directory.py +++ b/ranger/container/directory.py @@ -149,12 +149,10 @@ class Directory( # pylint: disable=too-many-instance-attributes,too-many-public self.marked_items = list() for opt in ('sort_directories_first', 'sort', 'sort_reverse', 'sort_case_insensitive'): - self.settings.signal_bind('setopt.' + opt, self.request_resort, - weak=True, autosort=False) + self.settings.signal_bind('setopt.' + opt, self.sort, weak=True, autosort=False) for opt in ('hidden_filter', 'show_hidden'): - self.settings.signal_bind('setopt.' + opt, self.refilter, - weak=True, autosort=False) + self.settings.signal_bind('setopt.' + opt, self.refilter, weak=True, autosort=False) self.settings = LocalSettings(path, self.settings) |