mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
Always return filled result again
This commit is contained in:
parent
971e1cdbec
commit
0f9da7f519
@ -78,8 +78,8 @@ namespace Wox.Plugin.Program
|
||||
}
|
||||
|
||||
var results1 = win32.AsParallel()
|
||||
.Where(p => p.Enabled)
|
||||
.Select(p => p.Result(query.Search, _context.API));
|
||||
.Where(p => p.Enabled)
|
||||
.Select(p => p.Result(query.Search, _context.API));
|
||||
|
||||
var results2 = uwps.AsParallel()
|
||||
.Where(p => p.Enabled)
|
||||
|
@ -99,9 +99,7 @@ namespace Wox.Infrastructure
|
||||
RawScore = Math.Max(score, pinyinScore)
|
||||
};
|
||||
|
||||
return result.Score > 0 ?
|
||||
result :
|
||||
new MatchResult { Success = false };
|
||||
return result;
|
||||
}
|
||||
|
||||
return new MatchResult { Success = false };
|
||||
|
Loading…
Reference in New Issue
Block a user