Remove AsyncAppContext::remove_window
This commit is contained in:
parent
fe6a1886c1
commit
1fd80ba8bd
2 changed files with 1 additions and 5 deletions
|
@ -1254,7 +1254,7 @@ impl Workspace {
|
|||
let prepare = self.prepare_to_close(false, cx);
|
||||
Some(cx.spawn(|_, mut cx| async move {
|
||||
if prepare.await? {
|
||||
cx.remove_window(window);
|
||||
window.remove(&mut cx);
|
||||
}
|
||||
Ok(())
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue