Skip to content

Commit

Permalink
Changing the config name from "settings.json" to "ipfilter.json" so t…
Browse files Browse the repository at this point in the history
…hat it's clear what app the file is for. This is to better support when people want to use the portable version of the exe and it may be sharing directory with other executables.
  • Loading branch information
DavidMoore committed Aug 29, 2019
1 parent cb36a1c commit e2dd375
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/IPFilter/IPFilter.csproj
Expand Up @@ -76,7 +76,7 @@
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="settings.json">
<None Update="ipfilter.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="lists.json">
Expand Down
4 changes: 2 additions & 2 deletions Code/IPFilter/Services/Config.cs
Expand Up @@ -12,15 +12,15 @@ class Config

public static Configuration Default => defaultConfig.Value;

internal const string DefaultSettings = "settings.json";
internal const string DefaultSettings = "ipfilter.json";

internal static readonly JavaScriptSerializer serializer = new JavaScriptSerializer();

static Configuration LoadDefault()
{
try
{
if (File.Exists("settings.json"))
if (File.Exists(DefaultSettings))
{
var json = File.ReadAllText(DefaultSettings);
return Parse(json);
Expand Down
File renamed without changes.

0 comments on commit e2dd375

Please sign in to comment.