diff --git a/src/Privatezilla/Privatezilla/Settings/Apps/EyeGaze.cs b/src/Privatezilla/Privatezilla/Settings/Apps/EyeGaze.cs deleted file mode 100644 index 555fc3d..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Apps/EyeGaze.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Apps -{ - internal class EyeGaze : SettingBase - { - private const string AppKey = @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\gazeInput"; - private const string DesiredValue = "Deny"; - - public override string ID() - { - return Properties.Resources.settingsAppsEyeGaze; - } - - public override string Info() - { - return Properties.Resources.settingsAppsEyeGazeInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.StringEquals(AppKey, "Value", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(AppKey, "Value", DesiredValue, RegistryValueKind.String); - return true; - } - catch - { } - - return false; - } - - - public override bool UndoSetting() - { - try - { - Registry.SetValue(AppKey, "Value", "Allow", RegistryValueKind.String); - return true; - } - catch - { } - - return false; - } - } -} \ No newline at end of file