mail/view: don't update() if coordinates are unchanged

This commit is contained in:
Manos Pitsidianakis 2020-11-28 22:42:11 +02:00
parent 7b3fb86483
commit 66dea9148b
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -917,11 +917,13 @@ impl MailView {
new_coordinates: (AccountHash, MailboxHash, EnvelopeHash),
context: &mut Context,
) {
self.coordinates = new_coordinates;
self.mode = ViewMode::Normal;
self.initialised = false;
self.init_futures(context);
self.set_dirty(true);
if self.coordinates != new_coordinates {
self.coordinates = new_coordinates;
self.mode = ViewMode::Normal;
self.initialised = false;
self.init_futures(context);
self.set_dirty(true);
}
}
fn open_attachment(