From 7efbe6d6926b4c2d4b50170cbb1fb8e16cb5154d Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 1 Dec 2020 20:02:42 +0200 Subject: [PATCH] listing: fix menu/sidebar not being redrawn on updates --- src/components/mail/listing.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs index c8b36c275..dcca59a9b 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(