Fix panic on quit
This commit is contained in:
parent
107c3d7f67
commit
47b4d9942f
3 changed files with 21 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue