Allow opening shared screen via the contacts popover

This commit is contained in:
Antonio Scandurra 2022-10-24 10:47:47 +02:00
parent 476020ae84
commit f99d70500c
5 changed files with 184 additions and 20 deletions

View file

@ -3835,6 +3835,11 @@ impl<'a, T: View> ViewContext<'a, T> {
self.app.notify_view(self.window_id, self.view_id);
}
pub fn dispatch_action(&mut self, action: impl Action) {
self.app
.dispatch_action_at(self.window_id, self.view_id, action)
}
pub fn dispatch_any_action(&mut self, action: Box<dyn Action>) {
self.app
.dispatch_any_action_at(self.window_id, self.view_id, action)