Ensure that new view observers are called by WindowContext::replace_root_view

This commit is contained in:
Max Brunsfeld
2023-12-19 17:04:42 -08:00
parent 71d17e268d
commit c81e89a4f4
2 changed files with 2 additions and 12 deletions
-5
View File
@@ -600,11 +600,6 @@ impl Workspace {
let modal_layer = cx.build_view(|_| ModalLayer::new());
// todo!()
// cx.update_default_global::<DragAndDrop<Workspace>, _, _>(|drag_and_drop, _| {
// drag_and_drop.register_container(weak_handle.clone());
// });
let mut active_call = None;
if cx.has_global::<Model<ActiveCall>>() {
let call = cx.global::<Model<ActiveCall>>().clone();