Remove default entries from Blacklist

It doesn't make any sense for them to be there, if we don't allow to edit them anyway
This commit is contained in:
JustArchi
2017-02-27 19:59:52 +01:00
parent 73c597fe75
commit ea15b6c017
3 changed files with 6 additions and 16 deletions

View File

@@ -42,9 +42,6 @@ namespace ConfigGenerator {
private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp;
private const ushort DefaultWCFPort = 1242;
// This is hardcoded blacklist which should not be possible to change
private static readonly HashSet<uint> GlobalBlacklist = new HashSet<uint> { 267420, 303700, 335590, 368020, 425280, 480730, 566020 };
[LocalizedCategory("Updates")]
[JsonProperty(Required = Required.DisallowNull)]
public bool AutoRestart { get; set; } = true;
@@ -53,8 +50,8 @@ namespace ConfigGenerator {
[JsonProperty(Required = Required.DisallowNull)]
public bool AutoUpdates { get; set; } = true;
[JsonProperty(ObjectCreationHandling = ObjectCreationHandling.Replace, Required = Required.DisallowNull)]
public List<uint> Blacklist { get; set; } = new List<uint>(GlobalBlacklist);
[JsonProperty(Required = Required.DisallowNull)]
public List<uint> Blacklist { get; set; } = new List<uint>();
[LocalizedCategory("Debugging")]
[JsonProperty(Required = Required.DisallowNull)]