git: Fix git modal and panel amend tooltip (#39008)

Closes #38783

Release Notes:

- Fixed the amend button tooltip shortcut in Git panel and modal.
This commit is contained in:
Miao
2025-09-29 19:58:14 +05:30
committed by GitHub
parent 9aa5817b85
commit f96fd928d7
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -455,7 +455,11 @@ impl CommitModal {
if can_commit {
Tooltip::with_meta_in(
tooltip,
Some(&git::Commit),
Some(if is_amend_pending {
&git::Amend
} else {
&git::Commit
}),
format!(
"git commit{}{}",
if is_amend_pending { " --amend" } else { "" },