mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 13:45:00 +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
|
@ -358,7 +358,7 @@ namespace SourceGit.Views.Widgets {
|
|||
builder.AppendLine();
|
||||
}
|
||||
|
||||
Clipboard.SetText(builder.ToString());
|
||||
Clipboard.SetDataObject(builder.ToString(), true);
|
||||
}));
|
||||
|
||||
foreach (var number in lineNumbers) {
|
||||
|
@ -476,7 +476,7 @@ namespace SourceGit.Views.Widgets {
|
|||
builder.AppendLine();
|
||||
}
|
||||
|
||||
Clipboard.SetText(builder.ToString());
|
||||
Clipboard.SetDataObject(builder.ToString(), true);
|
||||
};
|
||||
menu.Items.Add(copy);
|
||||
menu.IsOpen = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue