mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Update ControlPanel plugin with new code
This commit is contained in:
@@ -79,14 +79,14 @@ namespace Wox.Plugin.ControlPanel
|
|||||||
var scores = new List<int> {0};
|
var scores = new List<int> {0};
|
||||||
if (string.IsNullOrEmpty(item.LocalizedString))
|
if (string.IsNullOrEmpty(item.LocalizedString))
|
||||||
{
|
{
|
||||||
var score1 = StringMatcher.Score(item.LocalizedString, query);
|
var score1 = StringMatcher.FuzzySearch(query, item.LocalizedString).ScoreAfterSearchPrecisionFilter();
|
||||||
var score2 = StringMatcher.ScoreForPinyin(item.LocalizedString, query);
|
var score2 = StringMatcher.ScoreForPinyin(item.LocalizedString, query);
|
||||||
scores.Add(score1);
|
scores.Add(score1);
|
||||||
scores.Add(score2);
|
scores.Add(score2);
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(item.InfoTip))
|
if (!string.IsNullOrEmpty(item.InfoTip))
|
||||||
{
|
{
|
||||||
var score1 = StringMatcher.Score(item.InfoTip, query);
|
var score1 = StringMatcher.FuzzySearch(query, item.InfoTip).ScoreAfterSearchPrecisionFilter();
|
||||||
var score2 = StringMatcher.ScoreForPinyin(item.InfoTip, query);
|
var score2 = StringMatcher.ScoreForPinyin(item.InfoTip, query);
|
||||||
scores.Add(score1);
|
scores.Add(score1);
|
||||||
scores.Add(score2);
|
scores.Add(score2);
|
||||||
|
|||||||
Reference in New Issue
Block a user