From c2bf7f26685e0ff982c465f8064917530c9c7dc8 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:21:35 +0200 Subject: [PATCH] Delete Pictures.cs --- .../Privatezilla/Settings/Apps/Pictures.cs | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Apps/Pictures.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Apps/Pictures.cs b/src/Privatezilla/Privatezilla/Settings/Apps/Pictures.cs deleted file mode 100644 index 93fed7b..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Apps/Pictures.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Apps -{ - internal class Pictures: SettingBase - { - private const string AppKey = @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary"; - private const string DesiredValue ="Deny"; - - public override string ID() - { - return Properties.Resources.settingsAppsPictures; - } - - public override string Info() - { - return ""; - } - - 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