# Titlebar project menu double click \(\#3784\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dc1ed3c39d27dc1689f2565665c2d436e38db8d9

Requested commit: dc1ed3c39d27dc1689f2565665c2d436e38db8d9

Commit: dc1ed3c39d27dc1689f2565665c2d436e38db8d9

Tree: 9f4953cd754641d029334a49be466495bcfe4f0b

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
Titlebar project menu double click (#3784)

This addresses a bug where popover menus in the titlebar were rendered
only after a 2nd click. The first click was creating the View which the
second one then rendered.
In addition to this, `PopoverMenu::menu` function argument can now
return an `Option<View<T>>` instead of `View<T>` as the creation of the
menu can fail (as it might in case of git popover).

Release Notes:

- N/A
```

## Parents

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

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