mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24: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
|
@ -156,7 +156,7 @@ namespace SourceGit.Views.Widgets {
|
|||
var copyPath = new MenuItem();
|
||||
copyPath.Header = App.Text("CopyPath");
|
||||
copyPath.Click += (obj, ev) => {
|
||||
Clipboard.SetText(change.Path);
|
||||
Clipboard.SetDataObject(change.Path, true);
|
||||
ev.Handled = true;
|
||||
};
|
||||
menu.Items.Add(copyPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue