Store AnyViewHandle inside ViewHandle and Deref to it
This commit is contained in:
@@ -103,7 +103,7 @@ impl View for RecentProjectsView {
|
||||
}
|
||||
|
||||
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
||||
ChildView::new(self.picker.clone(), cx).boxed()
|
||||
ChildView::new(&self.picker, cx).boxed()
|
||||
}
|
||||
|
||||
fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
|
||||
Reference in New Issue
Block a user