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 authored and GitHub committed 2025-09-29 19:58:14 +05:30
1 parent 7140e11b38
commit c107712781
2 files changed
+6 -2

No files matched your search

+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 { "" },
+1 -1
View File
@@ -3458,7 +3458,7 @@ impl GitPanel {
if can_commit {
Tooltip::with_meta_in(
tooltip,
Some(&git::Commit),
Some(if amend { &git::Amend } else { &git::Commit }),
format!(
"git commit{}{}",
if amend { " --amend" } else { "" },