mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix<Clipboard>: fix crash reported by https://gitee.com/sourcegit/sourcegit/issues/I45346
This commit is contained in:
parent
6f61c79e8b
commit
56521d9418
7 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue