Refactoring directory path for storage

This commit is contained in:
bao-qian
2016-01-07 02:31:17 +00:00
parent b1ed51e72c
commit c8a932b6b3
15 changed files with 29 additions and 131 deletions

View File

@@ -17,7 +17,7 @@ namespace Wox.Infrastructure.Storage
protected override void LoadInternal()
{
string json = File.ReadAllText(ConfigPath);
string json = File.ReadAllText(FilePath);
if (!string.IsNullOrEmpty(json))
{
try
@@ -42,7 +42,7 @@ namespace Wox.Infrastructure.Storage
lock (syncObject)
{
string json = JsonConvert.SerializeObject(serializedObject, Formatting.Indented);
File.WriteAllText(ConfigPath, json);
File.WriteAllText(FilePath, json);
}
});
}