Merge pull request #630 from Flow-Launcher/optBardWardCompatibility

fix actionkeywords inflate when actionkeyword count mismatch in explorer plugin
This commit is contained in:
Jeremy Wu 2021-08-06 18:00:03 +10:00 committed by GitHub
commit 69cf19e8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
// TODO: Remove. This is backwards compatibility for 1.8.0 release.
// Introduced two new action keywords in Explorer, so need to update plugin setting in the UserData folder.
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count != settings.ActionKeywords.Count)
if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count > settings.ActionKeywords.Count)
{
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for index search
settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for path search