Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish #11

Closed
wants to merge 10 commits into from
5 changes: 4 additions & 1 deletion ShareLoader.Share/SettingsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ public static void Load()
Settings = new Dictionary<string, string>();
return;
}


Console.WriteLine("Reading File");
string content = System.IO.File.ReadAllText(FilePath);
Console.WriteLine("content: " + content);
Settings = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, string>>(content) ?? new();
Console.WriteLine("Count: " + Settings.Count());
}

public static void Save()
Expand Down
Loading