diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-10 12:47:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-19 16:00:44 +0100 |
commit | 21930bb30063f3d3eb46f28c234acfd822dc702d (patch) | |
tree | 0caa22d9131b544d87cb985aeb9876453298e1f8 | |
parent | 279b8316341841dd32bdda5a21bb61fed8b9d1ef (diff) |
thread: re-enable displaying message source
-rw-r--r-- | alot/widgets/thread.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index ebbc4704..ed2b5ac6 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -279,6 +279,19 @@ class MessageWidget(urwid.WidgetWrap): self._reassemble(val, self.display_source) self._display_content = val + @property + def display_source(self): + return self._display_source + @display_source.setter + def display_source(self, val): + val = bool(val) + + if val == self._display_source: + return + + self._reassemble(self.display_content, val) + self._display_source = val + def expand(self): self.display_content = True def collapse(self): |