Browse Source

Never return true on processing JobFinished

JobFinished events are not meant to be inhibited.
jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
1c62de57ae
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      src/components/mail/compose.rs
  2. 4
      src/components/mail/compose/gpg.rs

2
src/components/mail/compose.rs

@ -1098,7 +1098,7 @@ impl Component for Composer {
.replies
.push_back(UIEvent::Action(Tab(Kill(self.id))));
}
return true;
return false;
}
(ViewMode::WaitingForSendResult(ref mut selector, _), _) => {
if selector.process_event(event, context) {

4
src/components/mail/compose/gpg.rs

@ -164,7 +164,7 @@ impl Component for KeySelection {
.replies
.push_back(UIEvent::FinishedUIDialog(id, Box::new(res)));
}
return true;
return false;
}
let mut widget = UIDialog::new(
"select key",
@ -201,7 +201,7 @@ impl Component for KeySelection {
};
}
}
true
false
}
_ => progress_spinner.process_event(event, context),
},

Loading…
Cancel
Save