Move more window-specific methods from AppContext
to WindowContext
This commit is contained in:
parent
c62357db02
commit
9ef79735dc
10 changed files with 369 additions and 356 deletions
|
@ -1477,7 +1477,7 @@ async fn test_host_disconnect(
|
|||
.unwrap()
|
||||
.downcast::<Editor>()
|
||||
.unwrap();
|
||||
assert!(cx_b.read(|cx| editor_b.is_focused(cx)));
|
||||
assert!(cx_b.read_window(window_id_b, |cx| editor_b.is_focused(cx)).unwrap());
|
||||
editor_b.update(cx_b, |editor, cx| editor.insert("X", cx));
|
||||
assert!(cx_b.is_window_edited(workspace_b.window_id()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue