Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #43 from jjw24/fix_controlpanel_search
Browse files Browse the repository at this point in the history
Fix ControlPanel plugin search bug
  • Loading branch information
jjw24 authored Sep 30, 2019
2 parents ab4cc74 + 1817105 commit 64cd9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/Wox.Plugin.ControlPanel/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public List<Result> Query(Query query)
private int Score(ControlPanelItem item, string query)
{
var scores = new List<int> {0};
if (string.IsNullOrEmpty(item.LocalizedString))
if (!string.IsNullOrEmpty(item.LocalizedString))
{
var score1 = StringMatcher.FuzzySearch(query, item.LocalizedString).ScoreAfterSearchPrecisionFilter();
var score2 = StringMatcher.ScoreForPinyin(item.LocalizedString, query);
Expand Down

0 comments on commit 64cd9c0

Please sign in to comment.