mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Fix ControlPanel plugin search bug
This commit is contained in:
@@ -77,7 +77,7 @@ namespace Wox.Plugin.ControlPanel
|
|||||||
private int Score(ControlPanelItem item, string query)
|
private int Score(ControlPanelItem item, string query)
|
||||||
{
|
{
|
||||||
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.Score(item.LocalizedString, query);
|
||||||
var score2 = StringMatcher.ScoreForPinyin(item.LocalizedString, query);
|
var score2 = StringMatcher.ScoreForPinyin(item.LocalizedString, query);
|
||||||
|
|||||||
Reference in New Issue
Block a user