From 7adde8fe5c63122ab33cef926745446fadb96c4d Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:21:15 +0200 Subject: [PATCH] Delete TrackingApps.cs --- .../Settings/Apps/TrackingApps.cs | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Apps/TrackingApps.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Apps/TrackingApps.cs b/src/Privatezilla/Privatezilla/Settings/Apps/TrackingApps.cs deleted file mode 100644 index 86a13a9..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Apps/TrackingApps.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Apps -{ - internal class TrackingApps: SettingBase - { - private const string AppKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsAppsTrackingApps; - } - - public override string Info() - { - return Properties.Resources.settingsAppsTrackingAppsInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(AppKey, "Start_TrackProgs", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(AppKey, "Start_TrackProgs", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - - public override bool UndoSetting() - { - try - { - Registry.SetValue(AppKey, "Start_TrackProgs", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - } -} \ No newline at end of file