Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Flow.Launcher.Core/Plugin/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
var allPluginMetadata = new List<PluginMetadata>();
var directories = pluginDirectories.SelectMany(Directory.EnumerateDirectories);

// todo use linq when diable plugin is implmented since parallel.foreach + list is not thread saft

Check warning on line 30 in Flow.Launcher.Core/Plugin/PluginConfig.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`implmented` is not a recognized word. (unrecognized-spelling)
foreach (var directory in directories)
{
if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))
Expand Down Expand Up @@ -83,7 +83,7 @@
// If metadata's version greater than each duplicate's version, CompareTo > 0
var count = group.Where(x => metadata.Version.CompareTo(x.Version) > 0).Count();

// Only add if the meatadata's version is the highest of all duplicates in the group

Check warning on line 86 in Flow.Launcher.Core/Plugin/PluginConfig.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`meatadata` is not a recognized word. (unrecognized-spelling)
if (count == group.Count() - 1)
{
unique_list.Add(metadata);
Expand Down Expand Up @@ -119,7 +119,7 @@
// for plugins which doesn't has ActionKeywords key
metadata.ActionKeywords ??= new List<string> { metadata.ActionKeyword };
// for plugin still use old ActionKeyword
metadata.ActionKeyword = metadata.ActionKeywords?[0];
metadata.ActionKeyword = metadata.ActionKeywords?.FirstOrDefault() ?? string.Empty;
}
catch (Exception e)
{
Expand All @@ -135,7 +135,7 @@

if (!File.Exists(metadata.ExecuteFilePath))
{
API.LogError(ClassName, $"Execute file path didn't exist <{metadata.ExecuteFilePath}> for conifg <{configPath}");

Check warning on line 138 in Flow.Launcher.Core/Plugin/PluginConfig.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`conifg` is not a recognized word. (unrecognized-spelling)
return null;
}

Expand Down
Loading