From acaa1091ccb88ceed177506bfe4609b9deae77d4 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:22:37 +0200 Subject: [PATCH] Delete BlockEdgeRollout.cs --- .../Settings/Edge/BlockEdgeRollout.cs | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Edge/BlockEdgeRollout.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Edge/BlockEdgeRollout.cs b/src/Privatezilla/Privatezilla/Settings/Edge/BlockEdgeRollout.cs deleted file mode 100644 index 33e7e8d..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Edge/BlockEdgeRollout.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Edge -{ - internal class BlockEdgeRollout : SettingBase - { - private const string EdgeKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate"; - private const int DesiredValue = 1; - - public override string ID() - { - return Properties.Resources.settingsEdgeBlockEdgeRollout; - } - - public override string Info() - { - return Properties.Resources.settingsEdgeBlockEdgeRolloutInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(EdgeKey, "DoNotUpdateToEdgeWithChromium", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(EdgeKey, "DoNotUpdateToEdgeWithChromium", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(EdgeKey, "DoNotUpdateToEdgeWithChromium", 0, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file