# Add QuitMode policy to GPUI \(\#42391\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/112b5c16b74b27ff9efee98416402932c80847c5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 112b5c16b74b27ff9efee98416402932c80847c5

Requested commit: 112b5c16b74b27ff9efee98416402932c80847c5

Commit: 112b5c16b74b27ff9efee98416402932c80847c5

Tree: 3ded8531b3c600a804197423054294b88b021b97

Author: John Tur

Committer: GitHub

## Message

```
Add QuitMode policy to GPUI (#42391)

Applications can select a policy for when the app quits using the new
function `Application::with_quit_mode`:
- Only on explicit calls to `App::quit`
- When the last window is closed
- Platform default (former on macOS, latter everywhere else) 

Release Notes:

- N/A
```

## Parents

- [32ec1037e15d6b9b37dc31b06b1e9911a15f6be8](https://git.cafe/gitcafe/zed/commit/32ec1037e15d6b9b37dc31b06b1e9911a15f6be8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/112b5c16b74b27ff9efee98416402932c80847c5?format=markdown)
