mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fix issue#26 "not count execute error command in history will be better"
This commit is contained in:
@@ -29,7 +29,6 @@ namespace Wox.Plugin.System
|
|||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
ExecuteCmd(m.Key);
|
ExecuteCmd(m.Key);
|
||||||
AddCmdHistory(m.Key);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).Take(5);
|
}).Take(5);
|
||||||
@@ -49,7 +48,6 @@ namespace Wox.Plugin.System
|
|||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
ExecuteCmd(cmd);
|
ExecuteCmd(cmd);
|
||||||
AddCmdHistory(cmd);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -65,7 +63,6 @@ namespace Wox.Plugin.System
|
|||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
ExecuteCmd(m.Key);
|
ExecuteCmd(m.Key);
|
||||||
AddCmdHistory(m.Key);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).Take(4);
|
}).Take(4);
|
||||||
@@ -81,6 +78,7 @@ namespace Wox.Plugin.System
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
WindowsShellRun.Start(cmd);
|
WindowsShellRun.Start(cmd);
|
||||||
|
AddCmdHistory(cmd);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user