Fix first few asserts
This commit is contained in:
parent
1932a298cb
commit
a5ca58354d
3 changed files with 358 additions and 311 deletions
|
@ -1906,7 +1906,8 @@ impl<'a> WindowContext<'a> {
|
|||
.platform_window
|
||||
.on_should_close(Box::new(move || {
|
||||
this.update(|_, cx| {
|
||||
// Ensure that the window is removed from the app if it's been closed.
|
||||
// Ensure that the window is removed from the app if it's been closed
|
||||
// by always pre-empting the system close event.
|
||||
if f(cx) {
|
||||
cx.remove_window();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue