Fix bugs in CMD plugin and PluginMangerment Plugin.
This commit is contained in:
parent
413d8e6662
commit
73dc6b768f
4 changed files with 12 additions and 4 deletions
|
@ -81,7 +81,7 @@ namespace Wox.Plugin.PluginManagement
|
||||||
Action = e =>
|
Action = e =>
|
||||||
{
|
{
|
||||||
UnInstalledPlugins(plugin);
|
UnInstalledPlugins(plugin);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,10 +21,15 @@ namespace Wox.Plugin.System
|
||||||
|
|
||||||
if (webSearch != null)
|
if (webSearch != null)
|
||||||
{
|
{
|
||||||
string keyword = query.ActionParameters.Count > 0 ? query.RawQuery.Substring(query.RawQuery.IndexOf(' ') + 1) : "";
|
string keyword = query.ActionParameters.Count > 0 ? query.GetAllRemainingParameter() : "";
|
||||||
|
string title = string.Format("Search {0} for \"{1}\"", webSearch.Title, keyword);
|
||||||
|
if (string.IsNullOrEmpty(keyword))
|
||||||
|
{
|
||||||
|
title = "Search " + webSearch.Title;
|
||||||
|
}
|
||||||
results.Add(new Result()
|
results.Add(new Result()
|
||||||
{
|
{
|
||||||
Title = string.Format("Search {0} for \"{1}\"", webSearch.Title, keyword),
|
Title = title,
|
||||||
Score = 6,
|
Score = 6,
|
||||||
IcoPath = webSearch.IconPath,
|
IcoPath = webSearch.IconPath,
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
|
|
|
@ -184,7 +184,10 @@ namespace Wox.Plugin.System
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pszOut = Path.GetFullPath(pszCommand); // PathQualifyDef(pszOut, pszDir, 0);
|
//not right here.
|
||||||
|
//e.g. If I input qs which is a shortcut in a folder, and this folder has been added to Path
|
||||||
|
//After execute this, qs will trun to c:/xxxxxx/xxxxxxxx/qs, and give a file not find error.
|
||||||
|
//pszOut = Path.GetFullPath(pszCommand); // PathQualifyDef(pszOut, pszDir, 0);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue