code_review: PR (#282)

* add translations for `Text.CommitCM.CopyInfo`
* unify length of commit's short SHA
This commit is contained in:
leo 2024-07-24 10:42:58 +08:00
parent 114e5f8c1a
commit 6038fecab4
No known key found for this signature in database
4 changed files with 4 additions and 2 deletions

View file

@ -441,7 +441,7 @@ namespace SourceGit.ViewModels
copyInfo.Icon = App.CreateMenuIcon("Icons.Copy");
copyInfo.Click += (_, e) =>
{
App.CopyText($"{commit.SHA[..7]} - {commit.Subject}");
App.CopyText($"{commit.SHA.Substring(0, 10)} - {commit.Subject}");
e.Handled = true;
};
menu.Items.Add(copyInfo);