mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
mail/view: don't update() if coordinates are unchanged
This commit is contained in:
parent
7b3fb86483
commit
66dea9148b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user