mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
fix #1397 action keywords should not be set to empty string
This commit is contained in:
@@ -40,6 +40,7 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
var oldActionKeyword = _plugin.Metadata.ActionKeywords[0];
|
var oldActionKeyword = _plugin.Metadata.ActionKeywords[0];
|
||||||
var newActionKeyword = tbAction.Text.Trim();
|
var newActionKeyword = tbAction.Text.Trim();
|
||||||
|
newActionKeyword = newActionKeyword.Length > 0 ? newActionKeyword : "*";
|
||||||
if (!PluginManager.ActionKeywordRegistered(newActionKeyword))
|
if (!PluginManager.ActionKeywordRegistered(newActionKeyword))
|
||||||
{
|
{
|
||||||
var id = _plugin.Metadata.ID;
|
var id = _plugin.Metadata.ID;
|
||||||
|
|||||||
Reference in New Issue
Block a user