Skip to content

Commit e589785

Browse files
committed
add backwards compatibility
1 parent ff404c5 commit e589785

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
1616
{
1717
var settings = Plugins[metadata.ID];
1818

19-
// TODO: Remove. This is one off for 1.2.0 release.
20-
// Introduced a new action keyword in Explorer, so need to update plugin setting in the UserData folder.
21-
// This kind of plugin meta update should be handled by a dedicated method trigger by version bump.
19+
// TODO: Remove. This is backwards compatibility for 1.8.0 release.
20+
// Introduced two new action keywords in Explorer, so need to update plugin setting in the UserData folder.
2221
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count != settings.ActionKeywords.Count)
23-
settings.ActionKeywords = metadata.ActionKeywords;
22+
{
23+
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for index search
24+
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for path search
25+
}
2426

2527
if (string.IsNullOrEmpty(settings.Version))
2628
settings.Version = metadata.Version;

0 commit comments

Comments
 (0)