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
|
@ -572,7 +572,7 @@ impl Render for TextInput {
|
|||
.p(px(4.))
|
||||
.bg(white())
|
||||
.child(TextElement {
|
||||
input: cx.model().clone(),
|
||||
input: cx.entity().clone(),
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
@ -697,7 +697,7 @@ fn main() {
|
|||
},
|
||||
)
|
||||
.unwrap();
|
||||
let view = window.root_model(cx).unwrap();
|
||||
let view = window.root(cx).unwrap();
|
||||
cx.observe_keystrokes(move |ev, _, cx| {
|
||||
view.update(cx, |view, cx| {
|
||||
view.recent_keystrokes.push(ev.keystroke.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue