@@ -83,7 +83,7 @@ internal static Result CreateFolderResult(string title, string subtitle, string
83
83
{
84
84
try
85
85
{
86
- _openFolder ( path ) ;
86
+ OpenFolder ( path ) ;
87
87
return true ;
88
88
}
89
89
catch ( Exception ex )
@@ -131,7 +131,7 @@ internal static Result CreateDriveSpaceDisplayResult(string path, string actionK
131
131
ProgressBarColor = progressBarColor ,
132
132
Action = _ =>
133
133
{
134
- _openFolder ( path ) ;
134
+ OpenFolder ( path ) ;
135
135
return true ;
136
136
} ,
137
137
TitleToolTip = path ,
@@ -192,7 +192,7 @@ internal static Result CreateOpenCurrentFolderResult(string path, string actionK
192
192
CopyText = folderPath ,
193
193
Action = _ =>
194
194
{
195
- _openFolder ( folderPath ) ;
195
+ OpenFolder ( folderPath ) ;
196
196
return true ;
197
197
} ,
198
198
ContextData = new SearchResult { Type = ResultType . Folder , FullPath = folderPath , WindowsIndexed = windowsIndexed }
@@ -201,7 +201,7 @@ internal static Result CreateOpenCurrentFolderResult(string path, string actionK
201
201
202
202
internal static Result CreateFileResult ( string filePath , Query query , int score = 0 , bool windowsIndexed = false )
203
203
{
204
- Result . PreviewInfo preview = _isMedia ( Path . GetExtension ( filePath ) )
204
+ Result . PreviewInfo preview = IsMedia ( Path . GetExtension ( filePath ) )
205
205
? new Result . PreviewInfo { IsMedia = true , PreviewImagePath = filePath , }
206
206
: Result . PreviewInfo . Default ;
207
207
@@ -224,15 +224,15 @@ internal static Result CreateFileResult(string filePath, Query query, int score
224
224
// TODO Why do we check if file exists here, but not in the other if conditions?
225
225
if ( File . Exists ( filePath ) && c . SpecialKeyState . CtrlPressed && c . SpecialKeyState . ShiftPressed )
226
226
{
227
- _openFileAsAdmin ( filePath ) ;
227
+ OpenFileAsAdmin ( filePath ) ;
228
228
}
229
229
else if ( c . SpecialKeyState . CtrlPressed )
230
230
{
231
- _openFolder ( filePath , filePath ) ;
231
+ OpenFolder ( filePath , filePath ) ;
232
232
}
233
233
else
234
234
{
235
- _openFile ( filePath ) ;
235
+ OpenFile ( filePath ) ;
236
236
}
237
237
}
238
238
catch ( Exception ex )
@@ -249,7 +249,7 @@ internal static Result CreateFileResult(string filePath, Query query, int score
249
249
return result ;
250
250
}
251
251
252
- private static bool _isMedia ( string extension )
252
+ private static bool IsMedia ( string extension )
253
253
{
254
254
if ( string . IsNullOrEmpty ( extension ) )
255
255
{
@@ -261,25 +261,25 @@ private static bool _isMedia(string extension)
261
261
}
262
262
}
263
263
264
- private static void _openFile ( string filePath )
264
+ private static void OpenFile ( string filePath )
265
265
{
266
- _incrementEverythingRunCounterIfNeeded ( filePath ) ;
266
+ IncrementEverythingRunCounterIfNeeded ( filePath ) ;
267
267
FilesFolders . OpenPath ( filePath ) ;
268
268
}
269
269
270
- private static void _openFolder ( string folderPath , string fileNameOrFilePath = null )
270
+ private static void OpenFolder ( string folderPath , string fileNameOrFilePath = null )
271
271
{
272
- _incrementEverythingRunCounterIfNeeded ( folderPath ) ;
272
+ IncrementEverythingRunCounterIfNeeded ( folderPath ) ;
273
273
Context . API . OpenDirectory ( Path . GetDirectoryName ( folderPath ) , fileNameOrFilePath ) ;
274
274
}
275
275
276
- private static void _openFileAsAdmin ( string filePath )
276
+ private static void OpenFileAsAdmin ( string filePath )
277
277
{
278
278
_ = Task . Run ( ( ) =>
279
279
{
280
280
try
281
281
{
282
- _incrementEverythingRunCounterIfNeeded ( filePath ) ;
282
+ IncrementEverythingRunCounterIfNeeded ( filePath ) ;
283
283
Process . Start ( new ProcessStartInfo
284
284
{
285
285
FileName = filePath ,
@@ -295,7 +295,7 @@ private static void _openFileAsAdmin(string filePath)
295
295
} ) ;
296
296
}
297
297
298
- private static void _incrementEverythingRunCounterIfNeeded ( string fileOrFolder )
298
+ private static void IncrementEverythingRunCounterIfNeeded ( string fileOrFolder )
299
299
{
300
300
if ( Settings . EverythingEnabled )
301
301
_ = Task . Run ( ( ) => EverythingApi . IncrementRunCounterAsync ( fileOrFolder ) ) ;
0 commit comments