Skip to content

Commit

Permalink
Fixed exception dialog copy button issue when exception is thrown bef…
Browse files Browse the repository at this point in the history
…ore IoC initialization.
  • Loading branch information
RandomEngy committed Aug 9, 2024
1 parent 3c563c8 commit c054e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VidCoder/View/ExceptionDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public ExceptionDialog(Exception exception)

private void copyButton_Click(object sender, RoutedEventArgs e)
{
StaticResolver.Resolve<ClipboardService>().SetText(this.exceptionDetails);
var clipboardService = new ClipboardService();
clipboardService.SetText(this.exceptionDetails);
try
{
string issueTitle = $"{this.exception.GetType().FullName}: {this.exception.Message}";
Expand Down

0 comments on commit c054e0e

Please sign in to comment.