public SettingsViewModel() { _roamingSettings = ApplicationData.Current.RoamingSettings; DetectOneDrivePreference(); DetectAcrylicPreference(); DetectDateTimeFormat(); PinSidebarLocationItems(); DetectRecycleBinPreference(); DetectQuickLook(); DetectGridViewSize(); DrivesManager = new DrivesManager(); //DetectWSLDistros(); LoadTerminalApps(); // Send analytics Analytics.TrackEvent("DisplayedTimeStyle " + DisplayedTimeStyle.ToString()); Analytics.TrackEvent("ThemeValue " + ThemeHelper.RootTheme.ToString()); Analytics.TrackEvent("PinOneDriveToSideBar " + PinOneDriveToSideBar.ToString()); Analytics.TrackEvent("PinRecycleBinToSideBar " + PinRecycleBinToSideBar.ToString()); Analytics.TrackEvent("DoubleTapToRenameFiles " + DoubleTapToRenameFiles.ToString()); Analytics.TrackEvent("ShowFileExtensions " + ShowFileExtensions.ToString()); Analytics.TrackEvent("ShowConfirmDeleteDialog " + ShowConfirmDeleteDialog.ToString()); Analytics.TrackEvent("AcrylicSidebar " + AcrylicEnabled.ToString()); }
public SettingsViewModel() { _roamingSettings = ApplicationData.Current.RoamingSettings; DetectOneDrivePreference(); DetectAcrylicPreference(); DetectDateTimeFormat(); PinSidebarLocationItems(); DetectRecycleBinPreference(); DetectQuickLook(); DetectGridViewSize(); DrivesManager = new DrivesManager(); //DetectWSLDistros(); TerminalController = new TerminalController(); // Send analytics Analytics.TrackEvent("DisplayedTimeStyle " + DisplayedTimeStyle.ToString()); Analytics.TrackEvent("ThemeValue " + ThemeHelper.RootTheme.ToString()); Analytics.TrackEvent("PinOneDriveToSideBar " + PinOneDriveToSideBar.ToString()); Analytics.TrackEvent("PinRecycleBinToSideBar " + PinRecycleBinToSideBar.ToString()); Analytics.TrackEvent("DoubleTapToRenameFiles " + DoubleTapToRenameFiles.ToString()); Analytics.TrackEvent("ShowFileExtensions " + ShowFileExtensions.ToString()); Analytics.TrackEvent("ShowConfirmDeleteDialog " + ShowConfirmDeleteDialog.ToString()); Analytics.TrackEvent("AcrylicSidebar " + AcrylicEnabled.ToString()); Analytics.TrackEvent("ShowFileOwner " + ShowFileOwner.ToString()); Analytics.TrackEvent("IsHorizontalTabStripVisible " + IsHorizontalTabStripVisible.ToString()); Analytics.TrackEvent("IsMultitaskingControlVisible " + IsMultitaskingControlVisible.ToString()); // Load the supported languages var supportedLang = ApplicationLanguages.ManifestLanguages; DefaultLanguages = new ObservableCollection <DefaultLanguageModel> { new DefaultLanguageModel(null) }; foreach (var lang in supportedLang) { DefaultLanguages.Add(new DefaultLanguageModel(lang)); } }