Refactoring Programs system plugin and adding re-index function when adding new location.

This commit is contained in:
qianlifeng
2014-08-10 22:22:54 +08:00
parent 961bfcc481
commit 20ffcfb91e
10 changed files with 171 additions and 431 deletions

View File

@@ -135,30 +135,6 @@ namespace Wox.Infrastructure.Storage.UserSettings
return webSearches;
}
public List<ProgramSource> LoadDefaultProgramSources()
{
var list = new List<ProgramSource>();
list.Add(new ProgramSource()
{
BonusPoints = 0,
Enabled = true,
Type = "CommonStartMenuProgramSource"
});
list.Add(new ProgramSource()
{
BonusPoints = 0,
Enabled = true,
Type = "UserStartMenuProgramSource"
});
list.Add(new ProgramSource()
{
BonusPoints = -10,
Enabled = true,
Type = "AppPathsProgramSource"
});
return list;
}
protected override string ConfigName
{
get { return "config"; }
@@ -169,7 +145,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
Theme = "Dark";
ReplaceWinR = true;
WebSearches = LoadDefaultWebSearches();
ProgramSources = LoadDefaultProgramSources();
ProgramSources = new List<ProgramSource>();
CustomizedPluginConfigs = new List<CustomizedPluginConfig>();
Hotkey = "Alt + Space";
QueryBoxFont = FontFamily.GenericSansSerif.Name;