mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
#21 Add Disable option for each plugin.
This commit is contained in:
@@ -22,6 +22,12 @@ namespace Wox.Plugin.SystemPlugins
|
||||
if (metadata.ActionKeyword.StartsWith(query.RawQuery))
|
||||
{
|
||||
PluginMetadata metadataCopy = metadata;
|
||||
var customizedPluginConfig = UserSettingStorage.Instance.CustomizedPluginConfigs.FirstOrDefault(o => o.ID == metadataCopy.ID);
|
||||
if (customizedPluginConfig != null && customizedPluginConfig.Disabled)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Result result = new Result
|
||||
{
|
||||
Title = metadata.ActionKeyword,
|
||||
@@ -61,6 +67,11 @@ namespace Wox.Plugin.SystemPlugins
|
||||
}
|
||||
|
||||
|
||||
public override string ID
|
||||
{
|
||||
get { return "6A122269676E40EB86EB543B945932B9"; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return "Third-party Plugin Indicator"; }
|
||||
|
||||
Reference in New Issue
Block a user