Move more window-specific methods from AppContext to WindowContext

This commit is contained in:
Antonio Scandurra 2023-04-14 10:29:35 +02:00
parent c62357db02
commit 9ef79735dc
10 changed files with 369 additions and 356 deletions

View file

@ -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()));