Delete DisableSync.cs

This commit is contained in:
Belim 2020-09-20 19:22:42 +02:00 committed by GitHub
parent acaa1091cc
commit cdef214c3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,54 +0,0 @@
using Microsoft.Win32;
namespace Privatezilla.Setting.Edge
{
internal class DisableSync : SettingBase
{
private const string EdgeKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge";
private const int DesiredValue = 1;
public override string ID()
{
return Properties.Resources.settingsEdgeDisableSync;
}
public override string Info()
{
return Properties.Resources.settingsEdgeDisableSyncInfo;
}
public override bool CheckSetting()
{
return !(
RegistryHelper.IntEquals(EdgeKey, "SyncDisabled", DesiredValue)
);
}
public override bool DoSetting()
{
try
{
Registry.SetValue(EdgeKey, "SyncDisabled", DesiredValue, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
public override bool UndoSetting()
{
try
{
Registry.SetValue(EdgeKey, "SyncDisabled", 0, RegistryValueKind.DWord);
return true;
}
catch
{ }
return false;
}
}
}