mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
Making folder results from the search indexer plugin behave like folder results from folder plugin.
This commit is contained in:
parent
8f7305e347
commit
2b04d7a92d
@ -86,6 +86,13 @@ namespace Microsoft.Plugin.Indexer
|
||||
return hide;
|
||||
};
|
||||
r.ContextData = searchResult;
|
||||
|
||||
//If the result is a directory, then it's display should show a directory.
|
||||
if(Directory.Exists(path))
|
||||
{
|
||||
r.QueryTextDisplay = path;
|
||||
}
|
||||
|
||||
results.Add(r);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user