From 6071319acddcace712721aa9e3732eea26318a06 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Fri, 8 Jan 2016 01:57:11 +0000 Subject: [PATCH] Refactoring directory path for misc --- Wox/MainWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index c0795c70e6..aa802a3ad6 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -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);