From cde6f5a6ed4ce962f9f17085dec11ba1df787c1e Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:12 +0200 Subject: [PATCH] Delete DisableHEIP.cs --- .../Settings/Privacy/DisableHEIP.cs | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/DisableHEIP.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableHEIP.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/DisableHEIP.cs deleted file mode 100644 index 80ef9da..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableHEIP.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class DisableHEIP: SettingBase - { - private const string HEIPKey = @"HKEY_CURRENT_USER\Software\Microsoft\Assistance\Client\1.0\Settings"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyDisableHEIP; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyDisableHEIPInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(HEIPKey, "ImplicitFeedback", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(HEIPKey, "ImplicitFeedback", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(HEIPKey, "ImplicitFeedback", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file