From 83282ebcb8f27bdb05c81059511c4254923b0d2d Mon Sep 17 00:00:00 2001 From: jhdxr Date: Sat, 21 Oct 2017 15:39:39 +0800 Subject: [PATCH] fix #1397 action keywords should not be set to empty string --- Wox/ActionKeywords.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Wox/ActionKeywords.xaml.cs b/Wox/ActionKeywords.xaml.cs index 2dc0e02bd1..c86671c6ef 100644 --- a/Wox/ActionKeywords.xaml.cs +++ b/Wox/ActionKeywords.xaml.cs @@ -40,6 +40,7 @@ namespace Wox { var oldActionKeyword = _plugin.Metadata.ActionKeywords[0]; var newActionKeyword = tbAction.Text.Trim(); + newActionKeyword = newActionKeyword.Length > 0 ? newActionKeyword : "*"; if (!PluginManager.ActionKeywordRegistered(newActionKeyword)) { var id = _plugin.Metadata.ID;