mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Making folder results from the search indexer plugin behave like folder results from folder plugin.
This commit is contained in:
@@ -86,6 +86,13 @@ namespace Microsoft.Plugin.Indexer
|
|||||||
return hide;
|
return hide;
|
||||||
};
|
};
|
||||||
r.ContextData = searchResult;
|
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);
|
results.Add(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user