Skip to content

Commit 02f6b37

Browse files
committed
fix: copy to clipboard
1 parent 7a4969b commit 02f6b37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

MouseTrap/MouseTrap.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<PackageReference Include="TaskScheduler" Verson="2.8.21" Version="2.9.2" />
1919
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
2020
<PackageReference Include="Fody" Version="6.6.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
21+
<PackageReference Include="TextCopy" Version="6.2.1" />
2122
</ItemGroup>
2223

2324
<ItemGroup>

MouseTrap/src/Forms/DiagnosticForm.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using MouseTrap.Models;
44
using MouseTrap.Service;
55
using Newtonsoft.Json;
6+
using TextCopy;
67

78

89
// ReSharper disable LocalizableElement
@@ -48,7 +49,7 @@ public DiagnosticForm(ServiceThread service)
4849
sb.AppendLine();
4950
sb.AppendLine(LogfileBox.Text);
5051

51-
Clipboard.SetText(sb.ToString());
52+
ClipboardService.SetText(sb.ToString());
5253

5354
MessageBox.Show("Diagnostic data copied to clipboard.");
5455
};

0 commit comments

Comments
 (0)