Browse Source

compose: kill selectors on ComponentKill

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
0dd9e6a34b
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 16
      src/components/mail/compose.rs

16
src/components/mail/compose.rs

@ -834,6 +834,22 @@ impl Component for Composer {
self.set_dirty(true);
return true;
}
(ViewMode::Send(ref dialog), UIEvent::ComponentKill(ref id)) if *id == dialog.id() => {
self.mode = ViewMode::Edit;
self.set_dirty(true);
}
(ViewMode::SelectRecipients(ref dialog), UIEvent::ComponentKill(ref id))
if *id == dialog.id() =>
{
self.mode = ViewMode::Edit;
self.set_dirty(true);
}
(ViewMode::Discard(_, ref dialog), UIEvent::ComponentKill(ref id))
if *id == dialog.id() =>
{
self.mode = ViewMode::Edit;
self.set_dirty(true);
}
(ViewMode::Send(ref mut selector), _) => {
if selector.process_event(event, context) {
return true;

Loading…
Cancel
Save