summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-02-01 22:32:28 +0100
committernfnty <git@nfnty.se>2017-02-01 22:34:36 +0100
commit096ebc82d6084b2aafb6da8c77f2f090c9621f69 (patch)
tree509bbb8ef8a601d315d8de5614820a1669f44c42
parent0280ea6e037e7aa2459e46e9b5c940ef152bdeda (diff)
downloadranger-096ebc82d6084b2aafb6da8c77f2f090c9621f69.tar.gz
container.directory.Directory: Resort directly after setting changes
Fixes #707
-rw-r--r--ranger/container/directory.py6
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)