# Always prevent window from closing and manually invoke Workspace::close · gitcafe/zed

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

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

Visibility: public

Requested revision: d9b5357234db1d449468e11bc9d33ceb09e6a5c8

Requested commit: d9b5357234db1d449468e11bc9d33ceb09e6a5c8

Commit: d9b5357234db1d449468e11bc9d33ceb09e6a5c8

Tree: 56ca06f67a4b0cac0f04ca38af2e10c34e71d562

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Always prevent window from closing and manually invoke Workspace::close

This ensures we ask the user to save their state if there are unsaved
changes.

```

## Parents

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

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