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
dc1ed3c39dPiotr Osiewicz committed on 12/22/2023, 4:18:12 PM· committed by GitHubparent172e434
6 files changedLine totals unavailable