mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 08:29:01 +08:00
fix disable plugin not working
This commit is contained in:
parent
9ce239dedb
commit
1bda9d5a26
@ -6,6 +6,7 @@ using System.Text;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Wox.Infrastructure;
|
using Wox.Infrastructure;
|
||||||
using Wox.Plugin;
|
using Wox.Plugin;
|
||||||
|
using Wox.Core.UserSettings;
|
||||||
|
|
||||||
namespace Wox.Core.Plugin.QueryDispatcher
|
namespace Wox.Core.Plugin.QueryDispatcher
|
||||||
{
|
{
|
||||||
@ -17,6 +18,12 @@ namespace Wox.Core.Plugin.QueryDispatcher
|
|||||||
{
|
{
|
||||||
foreach (PluginPair pair in GetPlugins(query))
|
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;
|
PluginPair localPair = pair;
|
||||||
if (query.IsIntantQuery && PluginManager.IsInstantSearchPlugin(pair.Metadata))
|
if (query.IsIntantQuery && PluginManager.IsInstantSearchPlugin(pair.Metadata))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user