Indent json when saving tools
This commit is contained in:
@@ -242,7 +242,7 @@ namespace CutToLength
|
|||||||
|
|
||||||
private void SaveTools(IEnumerable<Tool> tools)
|
private void SaveTools(IEnumerable<Tool> tools)
|
||||||
{
|
{
|
||||||
var json = JsonConvert.SerializeObject(tools);
|
var json = JsonConvert.SerializeObject(tools, Formatting.Indented);
|
||||||
File.WriteAllText(ToolsFilePath, json);
|
File.WriteAllText(ToolsFilePath, json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user