Never return true on processing JobFinished

JobFinished events are not meant to be inhibited.
jmap-eventsource
Manos Pitsidianakis 2020-11-15 21:07:53 +02:00
parent 76f8bdc558
commit 1c62de57ae
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 3 additions and 3 deletions

View File

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

View File

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