summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-03-03 12:42:21 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2013-03-03 13:50:19 +0000
commit502ca759536f613b33cd464223217025d8e350fc (patch)
tree19ba4175a5057f71b1ddf2b450ead96a5dbe6b9f /alot
parentf1b3e8a0776f40a566b147a1993788bc40044bb8 (diff)
allow collapse/expand on thread.select
when body text lines are focussed
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 1801d7b6..458c7880 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -865,13 +865,11 @@ class ThreadSelectCommand(Command):
- if attachment line, this opens the attachment"""
def apply(self, ui):
focus = ui.get_deep_focus()
- if isinstance(focus, MessageSummaryWidget):
- ui.apply_command(ChangeDisplaymodeCommand(visible='toggle'))
- elif isinstance(focus, AttachmentWidget):
+ if isinstance(focus, AttachmentWidget):
logging.info('open attachment')
ui.apply_command(OpenAttachmentCommand(focus.get_attachment()))
else:
- logging.info('unknown widget %s' % focus)
+ ui.apply_command(ChangeDisplaymodeCommand(visible='toggle'))
@registerCommand(MODE, 'tag', forced={'action': 'add'}, arguments=[