Add branch to git panel (#24485)
This PR adds the branch selector to the git panel and fixes a few bugs in the repository selector. Release Notes: - N/A --------- Co-authored-by: ConradIrwin <conrad.irwin@gmail.com> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
co-authored by
ConradIrwin
Conrad
parent
d9183c7669
commit
ca4e8043d4
@@ -530,7 +530,7 @@ impl TitleBar {
|
||||
.tooltip(move |window, cx| {
|
||||
Tooltip::with_meta(
|
||||
"Recent Branches",
|
||||
Some(&zed_actions::branches::OpenRecent),
|
||||
Some(&zed_actions::git::Branch),
|
||||
"Local branches only",
|
||||
window,
|
||||
cx,
|
||||
@@ -538,7 +538,7 @@ impl TitleBar {
|
||||
})
|
||||
.on_click(move |_, window, cx| {
|
||||
let _ = workspace.update(cx, |_this, cx| {
|
||||
window.dispatch_action(zed_actions::branches::OpenRecent.boxed_clone(), cx);
|
||||
window.dispatch_action(zed_actions::git::Branch.boxed_clone(), cx);
|
||||
});
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user