From bd2bf1db6adab385bc774f841b1fc1d0fecf85c6 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 9 Dec 2014 03:47:54 +0100 Subject: core.fm: move a signal binding to a more sensible spot --- ranger/core/fm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 6bb4fd22..f6a918b1 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -62,9 +62,6 @@ class FM(Actions, SignalDispatcher): self.copy_buffer = set() self.do_cut = False self.papermanager = PaperManager() - self.settings.signal_bind('setopt.papermanager_deep_search', - lambda signal: setattr(signal.fm.papermanager, 'deep_search', - signal.value)) try: self.username = pwd.getpwuid(os.geteuid()).pw_name @@ -167,6 +164,10 @@ class FM(Actions, SignalDispatcher): self.notify(text, bad=True) self.run = Runner(ui=self.ui, logfunc=mylogfunc, fm=self) + self.settings.signal_bind('setopt.papermanager_deep_search', + lambda signal: setattr(signal.fm.papermanager, 'deep_search', + signal.value)) + def destroy(self): debug = ranger.arg.debug if self.ui: -- cgit 1.4.1-2-gfad0