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

@@ -47,8 +47,9 @@ namespace ArchiSteamFarm {
[JsonProperty(Required = Required.DisallowNull)]
internal readonly bool AutoUpdates = true;
[JsonProperty(ObjectCreationHandling = ObjectCreationHandling.Replace, Required = Required.DisallowNull)]
internal readonly HashSet<uint> Blacklist = new HashSet<uint>(GlobalBlacklist);
[SuppressMessage("ReSharper", "CollectionNeverUpdated.Global")]
[JsonProperty(Required = Required.DisallowNull)]
internal readonly HashSet<uint> Blacklist = new HashSet<uint>();
[JsonProperty(Required = Required.DisallowNull)]
internal readonly byte ConnectionTimeout = DefaultConnectionTimeout;

View File

@@ -1,15 +1,7 @@
{
"AutoRestart": true,
"AutoUpdates": true,
"Blacklist": [
267420,
303700,
335590,
368020,
425280,
480730,
566020
],
"Blacklist": [],
"ConnectionTimeout": 60,
"CurrentCulture": null,
"Debug": false,

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)]