From 7215c59e642c7ce6adcaf6bf84a296dd9c23a063 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:32 +0200 Subject: [PATCH] Delete GetMoreOutOfWindows.cs --- .../Settings/Privacy/GetMoreOutOfWindows.cs | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/GetMoreOutOfWindows.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/GetMoreOutOfWindows.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/GetMoreOutOfWindows.cs deleted file mode 100644 index 67284fa..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/GetMoreOutOfWindows.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class GetMoreOutOfWindows: SettingBase - { - private const string GetKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyGetMoreOutOfWindows; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyGetMoreOutOfWindowsInfo.Replace("\\n", "\n"); - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(GetKey, "ScoobeSystemSettingEnabled", DesiredValue) - - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(GetKey, "ScoobeSystemSettingEnabled", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(GetKey, "ScoobeSystemSettingEnabled", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file