mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 11:09:28 +08:00
Remove bonus points
This commit is contained in:
parent
0298fa602a
commit
d09c42366a
@ -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" };
|
||||
|
@ -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>();
|
||||
|
@ -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"};
|
||||
|
Loading…
Reference in New Issue
Block a user