From f27247087127b5f071310a201bbb90afe11aa3c4 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Fri, 13 Nov 2015 05:14:27 +0000 Subject: [PATCH] Add equality checking for old keyword and new keyword --- Wox.Core/Plugin/PluginManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs index 7ff406b710..db05467dd6 100644 --- a/Wox.Core/Plugin/PluginManager.cs +++ b/Wox.Core/Plugin/PluginManager.cs @@ -257,6 +257,8 @@ namespace Wox.Core.Plugin string msg = InternationalizationManager.Instance.GetTranslation("newActionKeywordsCannotBeEmpty"); throw new WoxPluginException(plugin.Metadata.Name, msg); } + // do nothing if they are same + if (oldActionKeyword == newActionKeyword) return; if (NonGlobalPlugins.ContainsKey(newActionKeyword)) { string msg = InternationalizationManager.Instance.GetTranslation("newActionKeywordsHasBeenAssigned");