diff --git a/Files/ViewModels/SettingsViewModel.cs b/Files/ViewModels/SettingsViewModel.cs index b3957ff56e23..18cbee450ec3 100644 --- a/Files/ViewModels/SettingsViewModel.cs +++ b/Files/ViewModels/SettingsViewModel.cs @@ -53,9 +53,7 @@ private async Task Initialize() FileTagsSettings = new FileTagsSettings(); // Send analytics to AppCenter - await StartAppCenter(); - TrackAnalytics(); - + StartAppCenter(); return this; } @@ -69,7 +67,7 @@ private SettingsViewModel() { } - private async Task StartAppCenter() + private async void StartAppCenter() { JObject obj; try @@ -84,10 +82,7 @@ private async Task StartAppCenter() } AppCenter.Start((string)obj.SelectToken("key"), typeof(Analytics), typeof(Crashes)); - } - private void TrackAnalytics() - { Analytics.TrackEvent($"{nameof(DisplayedTimeStyle)} {DisplayedTimeStyle}"); Analytics.TrackEvent($"{nameof(ThemeHelper.RootTheme)} {ThemeHelper.RootTheme}"); Analytics.TrackEvent($"{nameof(PinRecycleBinToSideBar)} {PinRecycleBinToSideBar}");