mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fix autocomplete due to error in returned autocomplete text (#6988)
This commit is contained in:
committed by
GitHub
parent
7c607ad540
commit
4feb0f209f
@@ -194,14 +194,15 @@ namespace Wox.Core.Plugin
|
||||
{
|
||||
foreach (Result result in results)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(result.QueryTextDisplay))
|
||||
if (string.IsNullOrEmpty(result.QueryTextDisplay))
|
||||
{
|
||||
result.QueryTextDisplay = result.Title;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(query.ActionKeyword))
|
||||
{
|
||||
result.QueryTextDisplay = string.Format("{0} {1}", query.ActionKeyword, result.QueryTextDisplay);
|
||||
}
|
||||
else
|
||||
{
|
||||
result.QueryTextDisplay = string.Format("{0} {1}", query.ActionKeyword, result.Title);
|
||||
}
|
||||
}
|
||||
|
||||
return results;
|
||||
|
||||
Reference in New Issue
Block a user