Fix panic on quit

This commit is contained in:
Conrad Irwin 2023-11-27 15:32:26 -07:00
parent 107c3d7f67
commit 47b4d9942f
3 changed files with 21 additions and 6 deletions

View file

@ -683,6 +683,9 @@ impl Drop for MacWindow {
this.executor
.spawn(async move {
unsafe {
// todo!() this panic()s when you click the red close button
// unless should_close returns false.
// (luckliy in zed it always returns false)
window.close();
}
})