diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-25 18:30:31 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-25 18:30:31 +0100 |
commit | 8422972845bed9253d7a5dad2b901fa4247708cd (patch) | |
tree | ce3341e823d39f752a1ee31c55e480383b0d9894 /alot/ui.py | |
parent | c3bd46cd204466038401365ef229c747b2c4242c (diff) |
thread buffer: make attachments work again
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -469,18 +469,6 @@ class UI: if posthook is not None: posthook(ui=self, dbm=self.dbman, buf=buf, success=success) - def get_deep_focus(self, startfrom=None): - """return the bottom most focussed widget of the widget tree""" - if not startfrom: - startfrom = self.current_buffer - if 'get_focus' in dir(startfrom): - focus = startfrom.get_focus() - if isinstance(focus, tuple): - focus = focus[0] - if isinstance(focus, urwid.Widget): - return self.get_deep_focus(startfrom=focus) - return startfrom - def get_buffers_of_type(self, t): """ returns currently open buffers for a given subclass of |