mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
Update mainview model with new code
This commit is contained in:
parent
cc23495591
commit
6625a2afd3
@ -305,8 +305,8 @@ namespace Wox.ViewModel
|
|||||||
{
|
{
|
||||||
var filtered = results.Where
|
var filtered = results.Where
|
||||||
(
|
(
|
||||||
r => StringMatcher.IsMatch(r.Title, query) ||
|
r => StringMatcher.FuzzySearch(query, r.Title).IsSearchPrecisionScoreMet()
|
||||||
StringMatcher.IsMatch(r.SubTitle, query)
|
|| StringMatcher.FuzzySearch(query, r.SubTitle).IsSearchPrecisionScoreMet()
|
||||||
).ToList();
|
).ToList();
|
||||||
ContextMenu.AddResults(filtered, id);
|
ContextMenu.AddResults(filtered, id);
|
||||||
}
|
}
|
||||||
@ -348,8 +348,8 @@ namespace Wox.ViewModel
|
|||||||
{
|
{
|
||||||
var filtered = results.Where
|
var filtered = results.Where
|
||||||
(
|
(
|
||||||
r => StringMatcher.IsMatch(r.Title, query) ||
|
r => StringMatcher.FuzzySearch(query, r.Title).IsSearchPrecisionScoreMet() ||
|
||||||
StringMatcher.IsMatch(r.SubTitle, query)
|
StringMatcher.FuzzySearch(query, r.SubTitle).IsSearchPrecisionScoreMet()
|
||||||
).ToList();
|
).ToList();
|
||||||
History.AddResults(filtered, id);
|
History.AddResults(filtered, id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user