Use ComponentSender#Emit when talking to parent components

This commit is contained in:
Bnyro
2023-07-01 12:04:23 +02:00
parent 7aa4936b0a
commit 19fa49ecf7
6 changed files with 25 additions and 11 deletions

View File

@@ -204,7 +204,7 @@ impl SimpleComponent for EditorDialog {
true => EditorOutput::CreateRequest(post, self.type_),
false => EditorOutput::EditRequest(post, self.type_),
};
let _ = sender.output(message);
sender.output_sender().emit(message);
self.visible = false;
}
DialogMsg::UpdateType(type_, is_new) => {