Move debug_elements to AnyWindowHandle
This commit is contained in:
parent
4f10f0ee86
commit
95cd96e4be
2 changed files with 9 additions and 9 deletions
|
@ -182,7 +182,7 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::AppContext) {
|
|||
let window = cx.window();
|
||||
cx.spawn(|workspace, mut cx| async move {
|
||||
let markdown = markdown.await.log_err();
|
||||
let content = to_string_pretty(&cx.debug_elements(window).ok_or_else(|| {
|
||||
let content = to_string_pretty(&window.debug_elements(&cx).ok_or_else(|| {
|
||||
anyhow!("could not debug elements for window {}", window.id())
|
||||
})?)
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue