From 89284ac4e0710f96635da2cf7ef0df2ec6042034 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:20:42 +0200 Subject: [PATCH] Delete OtherDevices.cs --- .../Settings/Apps/OtherDevices.cs | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Apps/OtherDevices.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Apps/OtherDevices.cs b/src/Privatezilla/Privatezilla/Settings/Apps/OtherDevices.cs deleted file mode 100644 index 7331a59..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Apps/OtherDevices.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Apps -{ - internal class OtherDevices: SettingBase - { - private const string AppKey = @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\bluetooth"; - private const string AppKey2 = @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\bluetoothSync"; - private const string DesiredValue ="Deny"; - - public override string ID() - { - return Properties.Resources.settingsAppsOtherDevices; - } - - public override string Info() - { - return ""; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.StringEquals(AppKey, "Value", DesiredValue) && - RegistryHelper.StringEquals(AppKey2, "Value", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(AppKey, "Value", DesiredValue, RegistryValueKind.String); - Registry.SetValue(AppKey2, "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