# Close the empty project before adding a project to a window \(\#54450\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7fc65c7db68eccfc98f1d2ba1affd641d75a7078

Requested commit: 7fc65c7db68eccfc98f1d2ba1affd641d75a7078

Commit: 7fc65c7db68eccfc98f1d2ba1affd641d75a7078

Tree: 233b72684fdf6c841b59b18008014a8abee01b04

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Close the empty project before adding a project to a window (#54450)

This prevents the user from getting into a state where they have unsaved
untitled buffers, but no way to get back to them.

Release Notes:

- N/A
```

## Parents

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

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