fix #185. Loading index cache on startup.

This commit is contained in:
qianlifeng
2014-12-15 22:58:49 +08:00
parent 32867d3666
commit 82106c1c8b
20 changed files with 233 additions and 56 deletions

View File

@@ -6,7 +6,7 @@ using Newtonsoft.Json;
namespace Wox.Infrastructure.Storage.UserSettings
{
public class UserSettingStorage : BaseStorage<UserSettingStorage>
public class UserSettingStorage : JsonStrorage<UserSettingStorage>
{
[JsonProperty]
public bool DontPromptUpdateMsg { get; set; }
@@ -146,7 +146,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
get { return "config"; }
}
protected override UserSettingStorage LoadDefaultConfig()
protected override UserSettingStorage LoadDefault()
{
DontPromptUpdateMsg = false;
Theme = "Dark";
@@ -165,7 +165,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
return this;
}
protected override void OnAfterLoadConfig(UserSettingStorage storage)
protected override void OnAfterLoad(UserSettingStorage storage)
{
if (storage.CustomizedPluginConfigs == null)
{