Add extra clone

This commit is contained in:
Mikayla 2023-11-08 22:16:08 -08:00
parent 7a7ef1025d
commit 86630bbe59
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ pub fn initialize_workspace(
) -> Task<Result<()>> {
cx.spawn(|mut cx| async move {
workspace_handle.update(&mut cx, |workspace, cx| {
let workspace_handle = cx.view();
let workspace_handle = cx.view().clone();
cx.subscribe(&workspace_handle, {
move |workspace, _, event, cx| {
if let workspace::Event::PaneAdded(pane) = event {