Skip to content

Commit c054e0e

Browse files
committed
Fixed exception dialog copy button issue when exception is thrown before IoC initialization.
1 parent 3c563c8 commit c054e0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

VidCoder/View/ExceptionDialog.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public ExceptionDialog(Exception exception)
5353

5454
private void copyButton_Click(object sender, RoutedEventArgs e)
5555
{
56-
StaticResolver.Resolve<ClipboardService>().SetText(this.exceptionDetails);
56+
var clipboardService = new ClipboardService();
57+
clipboardService.SetText(this.exceptionDetails);
5758
try
5859
{
5960
string issueTitle = $"{this.exception.GetType().FullName}: {this.exception.Message}";

0 commit comments

Comments
 (0)