mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-21 13:45:37 +01:00
Ensure config file is overwritten when saved.
This commit is contained in:
parent
b9184ba3d9
commit
929801b242
@ -49,8 +49,7 @@
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(userConfigFilePath));
|
||||
|
||||
using (var file = File.OpenWrite(userConfigFilePath))
|
||||
using (var streamWriter = new StreamWriter(file))
|
||||
using (var streamWriter = new StreamWriter(userConfigFilePath, append: false))
|
||||
{
|
||||
string serializedConfig = JsonConvert.SerializeObject(this.userConfig, Formatting.Indented);
|
||||
streamWriter.Write(serializedConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user