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) {
|
fn kill(&mut self, uuid: Uuid, context: &mut Context) {
|
||||||
|
if self.id != uuid {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if !self.has_changes {
|
if !self.has_changes {
|
||||||
context.replies.push_back(UIEvent::Action(Tab(Kill(uuid))));
|
context.replies.push_back(UIEvent::Action(Tab(Kill(uuid))));
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -195,6 +195,7 @@ pub trait MailListingTrait: ListingTrait {
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
self.row_updates().push(thread_hash);
|
self.row_updates().push(thread_hash);
|
||||||
|
self.set_dirty(true);
|
||||||
drop(envelope);
|
drop(envelope);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue