Data diagnostics opt-in

This commit is contained in:
Stefan Markovic
2024-09-24 13:47:38 +02:00
parent 2146dff3bf
commit bea3607ea0
242 changed files with 2546 additions and 1283 deletions

View File

@@ -8,6 +8,7 @@ using System.IO;
using System.Windows.Forms;
using ManagedCommon;
using Microsoft.PowerToys.Telemetry;
namespace MouseWithoutBorders
{
@@ -38,8 +39,12 @@ namespace MouseWithoutBorders
return;
}
ETWTrace etwTrace = new ETWTrace();
etwTrace.Start();
RunnerHelper.WaitForPowerToysRunnerExitFallback(() =>
{
etwTrace?.Dispose();
Application.Exit();
});
@@ -76,6 +81,8 @@ namespace MouseWithoutBorders
dotForm = new FormDot();
Application.Run(FormHelper = new FormHelper());
etwTrace?.Dispose();
}
}
}