Skip to content

Commit 1f7bfa7

Browse files
committed
Support non action keyword for plugins
1 parent b898c46 commit 1f7bfa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Core/Plugin/PluginConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static PluginMetadata GetPluginMetadata(string pluginDirectory)
119119
// for plugins which doesn't has ActionKeywords key
120120
metadata.ActionKeywords ??= new List<string> { metadata.ActionKeyword };
121121
// for plugin still use old ActionKeyword
122-
metadata.ActionKeyword = metadata.ActionKeywords?[0];
122+
metadata.ActionKeyword = metadata.ActionKeywords.Count == 0 ? string.Empty : metadata.ActionKeywords?[0];
123123
}
124124
catch (Exception e)
125125
{

0 commit comments

Comments
 (0)