# Ensure that new view observers are called by WindowContext::replace_root_view \(\#3730\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dfed171627aab3041892271a8541e726a9143c36

Requested commit: dfed171627aab3041892271a8541e726a9143c36

Commit: dfed171627aab3041892271a8541e726a9143c36

Tree: 1ee96dee5401d16a0e772de251e0a2f6bcd76085

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Ensure that new view observers are called by WindowContext::replace_root_view (#3730)

This fixes a bug where the window got into a bad, non-interactive state
when opening a project from an empty window.
```

## Parents

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

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

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