Introduce weak_handle methods on ModelContext and ViewContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
29b616f4cc
commit
4cc1556ca4
@@ -108,7 +108,7 @@ impl ProjectPanel {
|
||||
visible_entries: Default::default(),
|
||||
expanded_dir_ids: Default::default(),
|
||||
selection: None,
|
||||
handle: cx.handle().downgrade(),
|
||||
handle: cx.weak_handle(),
|
||||
};
|
||||
this.update_visible_entries(None, cx);
|
||||
this
|
||||
|
||||
Reference in New Issue
Block a user