mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update mainview model with new code
This commit is contained in:
parent
cc23495591
commit
6625a2afd3
1 changed files with 4 additions and 4 deletions
|
|
@ -305,8 +305,8 @@ namespace Wox.ViewModel
|
|||
{
|
||||
var filtered = results.Where
|
||||
(
|
||||
r => StringMatcher.IsMatch(r.Title, query) ||
|
||||
StringMatcher.IsMatch(r.SubTitle, query)
|
||||
r => StringMatcher.FuzzySearch(query, r.Title).IsSearchPrecisionScoreMet()
|
||||
|| StringMatcher.FuzzySearch(query, r.SubTitle).IsSearchPrecisionScoreMet()
|
||||
).ToList();
|
||||
ContextMenu.AddResults(filtered, id);
|
||||
}
|
||||
|
|
@ -348,8 +348,8 @@ namespace Wox.ViewModel
|
|||
{
|
||||
var filtered = results.Where
|
||||
(
|
||||
r => StringMatcher.IsMatch(r.Title, query) ||
|
||||
StringMatcher.IsMatch(r.SubTitle, query)
|
||||
r => StringMatcher.FuzzySearch(query, r.Title).IsSearchPrecisionScoreMet() ||
|
||||
StringMatcher.FuzzySearch(query, r.SubTitle).IsSearchPrecisionScoreMet()
|
||||
).ToList();
|
||||
History.AddResults(filtered, id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue