Remove bonus points

This commit is contained in:
bao-qian 2016-08-19 19:09:11 +01:00
parent 0298fa602a
commit d09c42366a
3 changed files with 0 additions and 10 deletions

View File

@ -154,17 +154,14 @@ namespace Wox.Plugin.Program
{
new CommonStartMenuProgramSource
{
BonusPoints = 0,
Enabled = _settings.EnableStartMenuSource,
},
new UserStartMenuProgramSource
{
BonusPoints = 0,
Enabled = _settings.EnableStartMenuSource,
},
new AppPathsProgramSource
{
BonusPoints = -10,
Enabled = _settings.EnableRegistrySource,
}
};
@ -179,7 +176,6 @@ namespace Wox.Plugin.Program
private static Program ScoreFilter(Program p)
{
p.Score += p.Source.BonusPoints;
var start = new[] { "启动", "start" };
var doc = new[] { "帮助", "help", "文档", "documentation" };
var uninstall = new[] { "卸载", "uninstall" };

View File

@ -9,11 +9,6 @@ namespace Wox.Plugin.Program.ProgramSources
[Serializable]
public class AppPathsProgramSource : ProgramSource
{
public AppPathsProgramSource()
{
BonusPoints = -10;
}
public override List<Program> LoadPrograms()
{
var list = new List<Program>();

View File

@ -10,7 +10,6 @@ namespace Wox.Plugin.Program.ProgramSources
{
public const char SuffixSeperator = ';';
public int BonusPoints { get; set; } = 0;
public bool Enabled { get; set; } = true;
// happlebao todo: temp hack for program suffixes
public string[] Suffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};