Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git_ui: Remove duplicated/unused tooltips (#38439)

Bartosz Kaszubowskie0028fbef269
diff --git a/crates/git_ui/src/commit_modal.rs b/crates/git_ui/src/commit_modal.rs
index a2f84726543..b7088f27e91 100644
--- a/crates/git_ui/src/commit_modal.rs
+++ b/crates/git_ui/src/commit_modal.rs
@@ -368,10 +368,6 @@ impl CommitModal {
.icon_color(Color::Placeholder)
.color(Color::Muted)
.icon_position(IconPosition::Start)
- .tooltip(Tooltip::for_action_title(
- "Switch Branch",
- &zed_actions::git::Branch,
- ))
.on_click(cx.listener(|_, _, window, cx| {
window.dispatch_action(zed_actions::git::Branch.boxed_clone(), cx);
}))
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 47dcc68d213..f8df51357da 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -4575,10 +4575,6 @@ impl RenderOnce for PanelRepoFooter {
.size(ButtonSize::None)
.label_size(LabelSize::Small)
.truncate(true)
- .tooltip(Tooltip::for_action_title(
- "Switch Branch",
- &zed_actions::git::Switch,
- ))
.on_click(|_, window, cx| {
window.dispatch_action(zed_actions::git::Switch.boxed_clone(), cx);
});