Skip to content

Commit 8bac95d

Browse files
fix typo
1 parent b120c23 commit 8bac95d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
Insert file suffixes you want to index. Suffixes should be separated by ';'. (ex>bat;py)
6262
</system:String>
6363
<system:String x:Key="flowlauncher_plugin_program_protocol_tooltip">
64-
Insert protocols of .url files you want to index. Protocols should be separated by ';', and should end with "//". (ex>ftp://;mailto://)
64+
Insert protocols of .url files you want to index. Protocols should be separated by ';', and should end with "://". (ex>ftp://;mailto://)
6565
</system:String>
6666

6767
<system:String x:Key="flowlauncher_plugin_program_run_as_different_user">Run As Different User</system:String>

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ private static Win32 ExeProgram(string path)
387387
}
388388
}
389389

390-
private static IEnumerable<string> EnmuerateProgramsInDir(string directory, string[] suffixes, bool recursive = true)
390+
private static IEnumerable<string> EnumerateProgramsInDir(string directory, string[] suffixes, bool recursive = true)
391391
{
392392
if (!Directory.Exists(directory))
393393
return Enumerable.Empty<string>();
@@ -416,7 +416,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<string> directories,
416416
{
417417
// Disabled custom sources are not in DisabledProgramSources
418418
var paths = directories.AsParallel()
419-
.SelectMany(s => EnmuerateProgramsInDir(s, suffixes));
419+
.SelectMany(s => EnumerateProgramsInDir(s, suffixes));
420420

421421
// Remove disabled programs in DisabledProgramSources
422422
var programs = ExceptDisabledSource(paths).Select(x => GetProgramFromPath(x, protocols));
@@ -427,8 +427,8 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
427427
{
428428
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Programs);
429429
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms);
430-
var paths1 = EnmuerateProgramsInDir(directory1, suffixes);
431-
var paths2 = EnmuerateProgramsInDir(directory2, suffixes);
430+
var paths1 = EnumerateProgramsInDir(directory1, suffixes);
431+
var paths2 = EnumerateProgramsInDir(directory2, suffixes);
432432

433433
var toFilter = paths1.Concat(paths2);
434434

@@ -449,7 +449,7 @@ private static IEnumerable<Win32> PATHPrograms(string[] suffixes, string[] proto
449449

450450
paths = paths.Where(x => commonParents.All(parent => !x.StartsWith(parent, StringComparison.OrdinalIgnoreCase)));
451451

452-
var toFilter = paths.AsParallel().SelectMany(p => EnmuerateProgramsInDir(p, suffixes, recursive: false));
452+
var toFilter = paths.AsParallel().SelectMany(p => EnumerateProgramsInDir(p, suffixes, recursive: false));
453453

454454
var programs = ExceptDisabledSource(toFilter.Distinct())
455455
.Select(x => GetProgramFromPath(x, protocols));

0 commit comments

Comments
 (0)