mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
More comments
This commit is contained in:
parent
a9192541ab
commit
a1a4c720c0
1 changed files with 4 additions and 2 deletions
|
|
@ -226,17 +226,19 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
// TODO Why do we check if file exists here, but not in the other if conditions?
|
||||
if (File.Exists(filePath) && c.SpecialKeyState.CtrlPressed && c.SpecialKeyState.ShiftPressed)
|
||||
{
|
||||
// run the file as admin
|
||||
IncrementRunCounterIfNeeded(filePath);
|
||||
OpenFileAsAdmin(filePath);
|
||||
}
|
||||
else if (c.SpecialKeyState.CtrlPressed)
|
||||
{
|
||||
// open folder and select this file
|
||||
IncrementRunCounterIfNeeded(filePath);
|
||||
FilesFolders.OpenContainingFolder(filePath);
|
||||
Context.API.OpenDirectory(Path.GetDirectoryName(filePath), filePath);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// run the file
|
||||
IncrementRunCounterIfNeeded(filePath);
|
||||
FilesFolders.OpenPath(filePath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue