diff --git a/MainWindow.cs b/MainWindow.cs index c27c984..41277f2 100755 --- a/MainWindow.cs +++ b/MainWindow.cs @@ -131,7 +131,11 @@ namespace Buypeeb { private void SaveSettings() { string j = JsonSerializer.Serialize(this.settings); + string p = System.IO.Path.Combine(this.location, "userdata.json"); Console.WriteLine(j); + if (!File.Exists(p)) { + File.CreateText(p); + } File.WriteAllText(System.IO.Path.Combine(this.location, "userdata.json"), j); }