Fix first few asserts

This commit is contained in:
Mikayla 2024-01-10 17:44:01 -08:00
parent 1932a298cb
commit a5ca58354d
No known key found for this signature in database
3 changed files with 358 additions and 311 deletions

View file

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