Follow-up tweaks to new git panel footer (#25832)

- Use a popover for the branch picker
- Don't deploy a repository selector if there's only one repo

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-02-28 19:05:43 -05:00 committed by GitHub
parent 1c4c568068
commit eb648dd096
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 64 additions and 28 deletions

View file

@ -47,6 +47,10 @@ impl RepositorySelector {
}
}
pub(crate) fn repositories_len(&self, cx: &App) -> usize {
self.picker.read(cx).delegate.repository_entries.len()
}
fn handle_project_git_event(
&mut self,
git_store: &Entity<GitStore>,