diff options
author | hut <hut@lepus.uberspace.de> | 2014-12-09 03:47:54 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-12-09 03:47:54 +0100 |
commit | bd2bf1db6adab385bc774f841b1fc1d0fecf85c6 (patch) | |
tree | d9a12d5fa2b880a90154b5f81d88f5cda207b9eb /ranger | |
parent | d0d0a95572528050b9d12759ef468ae4b4155e16 (diff) | |
download | ranger-bd2bf1db6adab385bc774f841b1fc1d0fecf85c6.tar.gz |
core.fm: move a signal binding to a more sensible spot
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/fm.py | 7 |
1 files 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: |