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
|
@ -972,7 +972,7 @@ impl Buffer {
|
|||
}
|
||||
|
||||
pub fn branch(&mut self, cx: &mut Context<Self>) -> Entity<Self> {
|
||||
let this = cx.model();
|
||||
let this = cx.entity();
|
||||
cx.new(|cx| {
|
||||
let mut branch = Self {
|
||||
branch_state: Some(BufferBranchState {
|
||||
|
|
|
@ -2805,7 +2805,7 @@ fn test_random_collaboration(cx: &mut App, mut rng: StdRng) {
|
|||
);
|
||||
buffer.set_group_interval(Duration::from_millis(rng.gen_range(0..=200)));
|
||||
let network = network.clone();
|
||||
cx.subscribe(&cx.model(), move |buffer, _, event, _| {
|
||||
cx.subscribe(&cx.entity(), move |buffer, _, event, _| {
|
||||
if let BufferEvent::Operation {
|
||||
operation,
|
||||
is_local: true,
|
||||
|
@ -2936,7 +2936,7 @@ fn test_random_collaboration(cx: &mut App, mut rng: StdRng) {
|
|||
);
|
||||
new_buffer.set_group_interval(Duration::from_millis(rng.gen_range(0..=200)));
|
||||
let network = network.clone();
|
||||
cx.subscribe(&cx.model(), move |buffer, _, event, _| {
|
||||
cx.subscribe(&cx.entity(), move |buffer, _, event, _| {
|
||||
if let BufferEvent::Operation {
|
||||
operation,
|
||||
is_local: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue