listing: fix menu/sidebar not being redrawn on updates

pull/144/head
Manos Pitsidianakis 4 years ago
parent 0f86934e16
commit 7efbe6d692
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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(

Loading…
Cancel
Save