Contron panel item priority should be lower when compared to programs.

This commit is contained in:
qianlifeng
2014-07-21 19:45:47 +08:00
parent ae062586d7
commit 88208285a4

View File

@@ -92,7 +92,9 @@ namespace Wox.Plugin.SystemPlugins.ControlPanel
} }
} }
return results.OrderByDescending(o => o.Score).Take(5).ToList(); List<Result> panelItems = results.OrderByDescending(o => o.Score).Take(5).ToList();
panelItems.ForEach(o => o.Score = 0);
return panelItems;
} }
private bool MatchProgram(ControlPanelItem item, FuzzyMatcher matcher) private bool MatchProgram(ControlPanelItem item, FuzzyMatcher matcher)