mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 22:35:38 +00:00
Add Sentry error tracking
This commit is contained in:
parent
2b89b22d41
commit
10a8598b82
9 changed files with 106 additions and 36 deletions
|
|
@ -14,24 +14,27 @@ namespace PowerControl
|
|||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (Settings.Default.EnableExperimentalFeatures)
|
||||
Instance.WithSentry(() =>
|
||||
{
|
||||
for (int i = 0; !VangoghGPU.IsSupported; i++)
|
||||
if (Settings.Default.EnableExperimentalFeatures)
|
||||
{
|
||||
Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect());
|
||||
if (VangoghGPU.IsSupported)
|
||||
Thread.Sleep(300);
|
||||
for (int i = 0; !VangoghGPU.IsSupported; i++)
|
||||
{
|
||||
Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect());
|
||||
if (VangoghGPU.IsSupported)
|
||||
Thread.Sleep(300);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
|
||||
using (var controller = new Controller())
|
||||
{
|
||||
Application.Run();
|
||||
}
|
||||
using (var controller = new Controller())
|
||||
{
|
||||
Application.Run();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue