Check ComponentId equality on Composer::kill()
parent
63af2a688a
commit
63467a3c45
|
@ -1007,6 +1007,10 @@ impl Component for Composer {
|
|||
}
|
||||
|
||||
fn kill(&mut self, uuid: Uuid, context: &mut Context) {
|
||||
if self.id != uuid {
|
||||
return;
|
||||
}
|
||||
|
||||
if !self.has_changes {
|
||||
context.replies.push_back(UIEvent::Action(Tab(Kill(uuid))));
|
||||
return;
|
||||
|
|
|
@ -195,6 +195,7 @@ pub trait MailListingTrait: ListingTrait {
|
|||
_ => unreachable!(),
|
||||
}
|
||||
self.row_updates().push(thread_hash);
|
||||
self.set_dirty(true);
|
||||
drop(envelope);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue