From bef25c7290ce374ab67441ef551d360bc8fe74fd Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Fri, 9 May 2025 12:50:25 -0700 Subject: [PATCH] git_ui: Fix co-author tooltip message (#30426) It should show "Remove co-authored-by" when hovering on co-author is already added state. And should say "Add co-authored-by" when it is at disabled state. Release Notes: - N/A Co-authored-by: Ben Kunkle --- crates/git_ui/src/git_panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 5085ed87042b78cf9048817b0f44cbce4ed905c7..738e0f62a3e240c9f7c71300d6fa04add4cad917 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() {