Refactoring directory path for misc

This commit is contained in:
bao-qian 2016-01-08 01:57:11 +00:00
parent e9ddfa6cf9
commit 6071319acd

View File

@ -748,7 +748,7 @@ namespace Wox
Title = string.Format(executeQueryHistoryTitle,history.Query),
SubTitle = string.Format(lastExecuteTime,history.ExecutedDateTime),
IcoPath = "Images\\history.png",
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
PluginDirectory = WoxDirectroy.Executable,
Action = _ =>{
ChangeQuery(history.Query,true);
return false;
@ -865,7 +865,7 @@ namespace Wox
{
return new Result(GetTranslation("cancelTopMostInThisQuery"), "Images\\down.png")
{
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
PluginDirectory = WoxDirectroy.Executable,
Action = _ =>
{
TopMostRecordStorage.Instance.Remove(result);
@ -878,7 +878,7 @@ namespace Wox
{
return new Result(GetTranslation("setAsTopMostInThisQuery"), "Images\\up.png")
{
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
PluginDirectory = WoxDirectroy.Executable,
Action = _ =>
{
TopMostRecordStorage.Instance.AddOrUpdate(result);