From 2f7b5dd041475456d8503af0dbba51ac32df7f9f Mon Sep 17 00:00:00 2001 From: renzhn Date: Thu, 27 Aug 2015 19:35:56 +0800 Subject: [PATCH 1/5] update plugin program translation --- Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml b/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml index ee397b26b..16e463931 100644 --- a/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml +++ b/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml @@ -10,8 +10,8 @@ 索引文件后缀 重新索引 索引中 - 指数开始菜单 - 指数注册 + 索引开始菜单 + 索引注册表 后缀 最大深度 From d9b9e02412b2f63608e3ce9cd3ebb643bfea0c32 Mon Sep 17 00:00:00 2001 From: renzhn Date: Thu, 27 Aug 2015 19:38:07 +0800 Subject: [PATCH 2/5] set port number if not zero --- Wox/SettingWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 5395de12b..319c45bc4 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -111,7 +111,9 @@ namespace Wox cbEnableProxy.Unchecked += (o, e) => DisableProxy(); cbEnableProxy.IsChecked = UserSettingStorage.Instance.ProxyEnabled; tbProxyServer.Text = UserSettingStorage.Instance.ProxyServer; - tbProxyPort.Text = UserSettingStorage.Instance.ProxyPort.ToString(); + if (UserSettingStorage.Instance.ProxyPort != 0) { + tbProxyPort.Text = UserSettingStorage.Instance.ProxyPort.ToString(); + } tbProxyUserName.Text = UserSettingStorage.Instance.ProxyUserName; tbProxyPassword.Password = UserSettingStorage.Instance.ProxyPassword; if (UserSettingStorage.Instance.ProxyEnabled) From bc86c9b57dbf64df7eb993f7f13f581d3533cf7f Mon Sep 17 00:00:00 2001 From: renzhn Date: Thu, 27 Aug 2015 19:51:31 +0800 Subject: [PATCH 3/5] setting window: plugin --- Wox/Languages/zh-cn.xaml | 4 ++-- Wox/SettingWindow.xaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Wox/Languages/zh-cn.xaml b/Wox/Languages/zh-cn.xaml index 0bf2be00e..e2ab87c4b 100644 --- a/Wox/Languages/zh-cn.xaml +++ b/Wox/Languages/zh-cn.xaml @@ -31,8 +31,8 @@ 触发关键字 插件目录 作者 - 加载耗时:{0}ms - 查询耗时:{0}ms + 加载耗时 {0}ms + 查询耗时 {0}ms 主题 diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index a28126a8d..4b5a39336 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -99,16 +99,16 @@ - + - + - - - + + + From 9ce239dedbf84f730b51913f109fc64754f6eff5 Mon Sep 17 00:00:00 2001 From: renzhn Date: Thu, 27 Aug 2015 19:57:54 +0800 Subject: [PATCH 4/5] fix StringNullOrEmptyToVisibilityConverter has no 0 parameter constructor --- Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs b/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs index f536e7473..543fecd32 100644 --- a/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs +++ b/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs @@ -8,6 +8,8 @@ namespace Wox.Converters { public class StringNullOrEmptyToVisibilityConverter : ConvertorBase { + public StringNullOrEmptyToVisibilityConverter() { } + public override object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return string.IsNullOrEmpty(value as string) ? Visibility.Collapsed : Visibility.Visible; From 1bda9d5a26c5cdfae3cad65a29b2218889b224b4 Mon Sep 17 00:00:00 2001 From: renzhn Date: Thu, 27 Aug 2015 20:27:14 +0800 Subject: [PATCH 5/5] fix disable plugin not working --- Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs index 6c5c562c8..b17875b6e 100644 --- a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs +++ b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs @@ -6,6 +6,7 @@ using System.Text; using System.Threading; using Wox.Infrastructure; using Wox.Plugin; +using Wox.Core.UserSettings; namespace Wox.Core.Plugin.QueryDispatcher { @@ -17,6 +18,12 @@ namespace Wox.Core.Plugin.QueryDispatcher { foreach (PluginPair pair in GetPlugins(query)) { + var customizedPluginConfig = UserSettingStorage.Instance. + CustomizedPluginConfigs.FirstOrDefault(o => o.ID == pair.Metadata.ID); + if (customizedPluginConfig != null && customizedPluginConfig.Disabled) + { + return; + } PluginPair localPair = pair; if (query.IsIntantQuery && PluginManager.IsInstantSearchPlugin(pair.Metadata)) {