Skip to content

Commit a1a4c72

Browse files
TheBestPessimistTheBestPessimist
authored andcommitted
More comments
1 parent a919254 commit a1a4c72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,17 +226,19 @@ internal static Result CreateFileResult(string filePath, Query query, int score
226226
// TODO Why do we check if file exists here, but not in the other if conditions?
227227
if (File.Exists(filePath) && c.SpecialKeyState.CtrlPressed && c.SpecialKeyState.ShiftPressed)
228228
{
229+
// run the file as admin
229230
IncrementRunCounterIfNeeded(filePath);
230231
OpenFileAsAdmin(filePath);
231232
}
232233
else if (c.SpecialKeyState.CtrlPressed)
233234
{
235+
// open folder and select this file
234236
IncrementRunCounterIfNeeded(filePath);
235-
FilesFolders.OpenContainingFolder(filePath);
237+
Context.API.OpenDirectory(Path.GetDirectoryName(filePath), filePath);
236238
}
237-
238239
else
239240
{
241+
// run the file
240242
IncrementRunCounterIfNeeded(filePath);
241243
FilesFolders.OpenPath(filePath);
242244
}

0 commit comments

Comments
 (0)