Add handling when query action keyword is empty

This commit is contained in:
Jeremy Wu
2019-12-09 08:28:22 +11:00
parent f05767afe8
commit 4f38a953ac

View File

@@ -82,7 +82,7 @@ namespace Wox.Plugin.Folder
}
string changeTo = path.EndsWith("\\") ? path : path + "\\";
_context.API.ChangeQuery(queryActionKeyword + " " + changeTo);
_context.API.ChangeQuery(string.IsNullOrEmpty(queryActionKeyword)? changeTo : queryActionKeyword + " " + changeTo);
return false;
}
};