summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-02-25 18:30:31 +0100
committerAnton Khirnov <anton@khirnov.net>2020-02-25 18:30:31 +0100
commit8422972845bed9253d7a5dad2b901fa4247708cd (patch)
treece3341e823d39f752a1ee31c55e480383b0d9894 /alot/ui.py
parentc3bd46cd204466038401365ef229c747b2c4242c (diff)
thread buffer: make attachments work again
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/alot/ui.py b/alot/ui.py
index c62fee27..39999ad8 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -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