Populate the window title whenever worktrees or active path change

* Refactor the way the project's active entry is assigned. Assign it
  together with the window title, as opposed to on every notification
  from a pane.
* Emit the ActiveItem event from panes consistently, even when adding
  the first item to an empty pane.
This commit is contained in:
Max Brunsfeld 2022-05-27 10:51:12 -07:00
parent e6be151a64
commit a88b4eb3c5
3 changed files with 210 additions and 48 deletions

View file

@ -229,6 +229,10 @@ pub fn menus() -> Vec<Menu<'static>> {
},
],
},
Menu {
name: "Window",
items: vec![MenuItem::Separator],
},
Menu {
name: "Help",
items: vec![MenuItem::Action {