Skip to content

Commit f292456

Browse files
committed
handle new action keyword in Explorer- one off
1 parent a622d8c commit f292456

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using Flow.Launcher.Plugin;
33

44
namespace Flow.Launcher.Infrastructure.UserSettings
@@ -15,6 +15,13 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
1515
if (Plugins.ContainsKey(metadata.ID))
1616
{
1717
var settings = Plugins[metadata.ID];
18+
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.
22+
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count != settings.ActionKeywords.Count)
23+
settings.ActionKeywords = metadata.ActionKeywords;
24+
1825
if (settings.ActionKeywords?.Count > 0)
1926
{
2027
metadata.ActionKeywords = settings.ActionKeywords;

0 commit comments

Comments
 (0)