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: Fix co-author tooltip message (#30426)

Smit Barmasebef25c7290ce
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 5085ed87042..738e0f62a3e 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -2765,9 +2765,9 @@ impl GitPanel {
let potential_co_authors = self.potential_co_authors(cx);
let (tooltip_label, icon) = if self.add_coauthors {
- ("Add co-authored-by", IconName::UserCheck)
- } else {
("Remove co-authored-by", IconName::Person)
+ } else {
+ ("Add co-authored-by", IconName::UserCheck)
};
if potential_co_authors.is_empty() {