mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-11 05:52:19 +02:00
[PT Run] Open folder using shell instead of explorer.exe (#7292)
* pt run not using explorer.exe for opening path (#4622) * updated explorer action name (#4622)
This commit is contained in:
committed by
GitHub
parent
36dd29c056
commit
b80578b1b9
@@ -10,7 +10,7 @@ namespace Microsoft.Plugin.Folder.Sources.Result
|
||||
{
|
||||
public class FolderItemResult : IItemResult
|
||||
{
|
||||
private static readonly IExplorerAction ExplorerAction = new ExplorerAction();
|
||||
private static readonly IShellAction ShellAction = new ShellAction();
|
||||
|
||||
public FolderItemResult()
|
||||
{
|
||||
@@ -41,7 +41,7 @@ namespace Microsoft.Plugin.Folder.Sources.Result
|
||||
QueryTextDisplay = Path,
|
||||
TitleHighlightData = StringMatcher.FuzzySearch(Search, Title).MatchData,
|
||||
ContextData = new SearchResult { Type = ResultType.Folder, FullPath = Path },
|
||||
Action = c => ExplorerAction.Execute(Path, contextApi),
|
||||
Action = c => ShellAction.Execute(Path, contextApi),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user