Move logic for joining project into a global action in collab_ui

This commit is contained in:
Antonio Scandurra
2022-10-05 15:04:03 +02:00
parent 383c21046f
commit 8f8843711f
5 changed files with 115 additions and 77 deletions
+4
View File
@@ -790,6 +790,10 @@ impl AsyncAppContext {
self.update(|cx| cx.remove_window(window_id))
}
pub fn activate_window(&mut self, window_id: usize) {
self.update(|cx| cx.activate_window(window_id))
}
pub fn platform(&self) -> Arc<dyn Platform> {
self.0.borrow().platform()
}