mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 19:19:23 +08:00
646b7a3118
1. fix #627 2. fix #646 3. remove exceptionless
27 lines
532 B
C#
27 lines
532 B
C#
using System;
|
|
|
|
namespace Wox
|
|
{
|
|
public class CrashReporter
|
|
{
|
|
private Exception exception;
|
|
|
|
public CrashReporter(Exception e)
|
|
{
|
|
exception = e;
|
|
}
|
|
|
|
public void Show()
|
|
{
|
|
if (exception == null) return;
|
|
|
|
if (exception.InnerException != null)
|
|
{
|
|
exception = exception.InnerException;
|
|
}
|
|
ReportWindow reportWindow = new ReportWindow(exception);
|
|
reportWindow.Show();
|
|
}
|
|
}
|
|
}
|