Indent json when saving tools

This commit is contained in:
aj
2018-06-02 21:41:20 -04:00
parent 0cded86d75
commit 4c5e8f8afb

View File

@@ -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);
} }