Expose index file suffixes config [WIP]

This commit is contained in:
qianlifeng
2014-08-13 23:16:45 +08:00
parent eee76222bd
commit 5d1006f05b
9 changed files with 108 additions and 20 deletions

View File

@@ -67,6 +67,9 @@ namespace Wox.Infrastructure.Storage.UserSettings
[JsonProperty]
public double Opacity { get; set; }
[JsonProperty]
public List<string> ProgramSuffixes { get; set; }
[JsonProperty]
public OpacityMode OpacityMode { get; set; }
@@ -162,6 +165,16 @@ namespace Wox.Infrastructure.Storage.UserSettings
{
storage.CustomizedPluginConfigs = new List<CustomizedPluginConfig>();
}
if (storage.ProgramSuffixes == null || storage.ProgramSuffixes.Count == 0)
{
storage.ProgramSuffixes = new List<string>()
{
"lnk",
"exe",
"appref-ms",
"bat"
};
}
}
}