Remove more references to 'model' in GPUI APIs (#23693)
Release Notes: - N/A
This commit is contained in:
parent
a6b1514246
commit
9cae96f82f
115 changed files with 309 additions and 311 deletions
|
@ -516,7 +516,7 @@ impl ToolbarItemView for BufferSearchBar {
|
|||
if let Some(searchable_item_handle) =
|
||||
item.and_then(|item| item.to_searchable_item_handle(cx))
|
||||
{
|
||||
let this = cx.model().downgrade();
|
||||
let this = cx.entity().downgrade();
|
||||
|
||||
self.active_searchable_item_subscription =
|
||||
Some(searchable_item_handle.subscribe_to_search_events(
|
||||
|
|
|
@ -820,7 +820,7 @@ impl ProjectSearchView {
|
|||
return;
|
||||
};
|
||||
|
||||
let weak_workspace = cx.model().downgrade();
|
||||
let weak_workspace = cx.entity().downgrade();
|
||||
|
||||
let model = cx.new(|cx| ProjectSearch::new(workspace.project().clone(), cx));
|
||||
let search = cx.new(|cx| ProjectSearchView::new(weak_workspace, model, window, cx, None));
|
||||
|
@ -879,7 +879,7 @@ impl ProjectSearchView {
|
|||
model.search(new_query, cx);
|
||||
model
|
||||
});
|
||||
let weak_workspace = cx.model().downgrade();
|
||||
let weak_workspace = cx.entity().downgrade();
|
||||
workspace.add_item_to_active_pane(
|
||||
Box::new(
|
||||
cx.new(|cx| {
|
||||
|
@ -937,7 +937,7 @@ impl ProjectSearchView {
|
|||
|
||||
let settings = settings.cloned();
|
||||
|
||||
let weak_workspace = cx.model().downgrade();
|
||||
let weak_workspace = cx.entity().downgrade();
|
||||
|
||||
let project_search = cx.new(|cx| ProjectSearch::new(workspace.project().clone(), cx));
|
||||
let project_search_view = cx.new(|cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue