mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
code_review: PR #160
* should be `Icons.Copy` not `Icon.Copy` * remove unused using * keep the same code style in a function
This commit is contained in:
parent
04e6ed45a7
commit
9d9dd6acb5
3 changed files with 27 additions and 22 deletions
|
@ -181,19 +181,18 @@ namespace SourceGit.ViewModels
|
|||
App.CopyText(change.Path);
|
||||
ev.Handled = true;
|
||||
};
|
||||
|
||||
menu.Items.Add(copyPath);
|
||||
var copyFileName = new MenuItem()
|
||||
{
|
||||
Header = App.Text("CopyFileName"),
|
||||
Icon = App.CreateMenuIcon("Icon.Copy"),
|
||||
};
|
||||
|
||||
var copyFileName = new MenuItem();
|
||||
copyFileName.Header = App.Text("CopyFileName");
|
||||
copyFileName.Icon = App.CreateMenuIcon("Icons.Copy");
|
||||
copyFileName.Click += (_, e) =>
|
||||
{
|
||||
App.CopyText(Path.GetFileName(change.Path));
|
||||
e.Handled = true;
|
||||
};
|
||||
menu.Items.Add(copyFileName);
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue