summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-12-01 20:02:42 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-12-01 20:03:58 +0200
commit7efbe6d6926b4c2d4b50170cbb1fb8e16cb5154d (patch)
treeb5b51db382f7a3fec80394d4fc28b38ff8e172ef
parent0f86934e16cb2c13aa7df68f16473e5b10186fc7 (diff)
listing: fix menu/sidebar not being redrawn on updates
-rw-r--r--src/components/mail/listing.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs
index c8b36c27..dcca59a9 100644
--- a/src/components/mail/listing.rs
+++ b/src/components/mail/listing.rs
@@ -709,7 +709,7 @@ impl Component for Listing {
return true;
}
UIEvent::ChangeMode(UIMode::Normal) => {
- self.dirty = true;
+ self.set_dirty(true);
}
UIEvent::Resize => {
self.set_dirty(true);
@@ -1405,6 +1405,8 @@ impl Component for Listing {
| UIEvent::EnvelopeRename(_, _)
| UIEvent::EnvelopeRemove(_, _) => {
self.dirty = true;
+ /* clear menu to force redraw */
+ self.menu_content.empty();
context
.replies
.push_back(UIEvent::StatusEvent(StatusEvent::UpdateStatus(