This commit is contained in:
leo 2021-08-12 11:38:55 +08:00
parent 6f61c79e8b
commit 56521d9418
7 changed files with 18 additions and 18 deletions

View file

@ -388,7 +388,7 @@ namespace SourceGit.Views.Widgets {
var copyPath = new MenuItem();
copyPath.Header = App.Text("CopyPath");
copyPath.Click += (o, e) => {
Clipboard.SetText(node.Path);
Clipboard.SetDataObject(node.Path, true);
e.Handled = true;
};
@ -510,7 +510,7 @@ namespace SourceGit.Views.Widgets {
var copyPath = new MenuItem();
copyPath.Header = App.Text("CopyPath");
copyPath.Click += (o, e) => {
Clipboard.SetText(change.Path);
Clipboard.SetDataObject(change.Path, true);
e.Handled = true;
};
@ -619,7 +619,7 @@ namespace SourceGit.Views.Widgets {
var copyPath = new MenuItem();
copyPath.Header = App.Text("CopyPath");
copyPath.Click += (o, e) => {
Clipboard.SetText(node.Path);
Clipboard.SetDataObject(node.Path, true);
e.Handled = true;
};
@ -663,7 +663,7 @@ namespace SourceGit.Views.Widgets {
var copyPath = new MenuItem();
copyPath.Header = App.Text("CopyPath");
copyPath.Click += (o, e) => {
Clipboard.SetText(change.Path);
Clipboard.SetDataObject(change.Path, true);
e.Handled = true;
};