From 9c1a7460edb793cb3ebad812792c49d6eb5a5784 Mon Sep 17 00:00:00 2001 From: Joshua Askharoun Date: Thu, 6 May 2021 04:06:13 -0500 Subject: [PATCH] Disabled analytcs when in Debug mode --- ZuneModdingHelper/App.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ZuneModdingHelper/App.xaml.cs b/ZuneModdingHelper/App.xaml.cs index 3a653f6..e0ca176 100644 --- a/ZuneModdingHelper/App.xaml.cs +++ b/ZuneModdingHelper/App.xaml.cs @@ -36,6 +36,11 @@ namespace ZuneModdingHelper // Set up App Center analytics AppCenter.SetCountryCode(System.Globalization.RegionInfo.CurrentRegion.TwoLetterISORegionName); AppCenter.Start("24903c19-b3d9-4ab5-b445-b981ca647125", typeof(Analytics), typeof(Crashes)); + +#if DEBUG + // Disable crash and event analytics when in debug + AppCenter.SetEnabledAsync(false); +#endif } } }