diff --git a/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml b/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml index ee397b26be..16e4639317 100644 --- a/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml +++ b/Plugins/Wox.Plugin.Program/Languages/zh-cn.xaml @@ -10,8 +10,8 @@ 索引文件后缀 重新索引 索引中 - 指数开始菜单 - 指数注册 + 索引开始菜单 + 索引注册表 后缀 最大深度 diff --git a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs index 6c5c562c8c..b17875b6ef 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)) { diff --git a/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs b/Wox/Converters/StringNullOrEmptyToVisibilityConverter.cs index f536e74735..543fecd322 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; diff --git a/Wox/Languages/zh-cn.xaml b/Wox/Languages/zh-cn.xaml index 0bf2be00e1..e2ab87c4b2 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 a28126a8d1..4b5a39336f 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -99,16 +99,16 @@ - + - + - - - + + + diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 5395de12ba..319c45bc48 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)