mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
26 lines
532 B
C#
26 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();
|
|
}
|
|
}
|
|
}
|