fix #1397 action keywords should not be set to empty string

This commit is contained in:
jhdxr
2017-10-21 15:39:39 +08:00
parent d3169b10f8
commit 83282ebcb8

View File

@@ -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;