Skip to content

Commit

Permalink
fix: copy to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
r-Larch committed Dec 23, 2022
1 parent 7a4969b commit 02f6b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions MouseTrap/MouseTrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<PackageReference Include="TaskScheduler" Verson="2.8.21" Version="2.9.2" />
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
<PackageReference Include="Fody" Version="6.6.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="TextCopy" Version="6.2.1" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion MouseTrap/src/Forms/DiagnosticForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using MouseTrap.Models;
using MouseTrap.Service;
using Newtonsoft.Json;
using TextCopy;


// ReSharper disable LocalizableElement
Expand Down Expand Up @@ -48,7 +49,7 @@ public DiagnosticForm(ServiceThread service)
sb.AppendLine();
sb.AppendLine(LogfileBox.Text);

Clipboard.SetText(sb.ToString());
ClipboardService.SetText(sb.ToString());

MessageBox.Show("Diagnostic data copied to clipboard.");
};
Expand Down

0 comments on commit 02f6b37

Please sign in to comment.