From c98a4feecf70fa08535f2729b0731aa3eea003e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E7=82=B9lilac?= Date: Thu, 31 Dec 2020 21:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ContextMenuManager/Controls/RegRuleItem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ContextMenuManager/Controls/RegRuleItem.cs b/ContextMenuManager/Controls/RegRuleItem.cs index b2332ce..a0450a4 100644 --- a/ContextMenuManager/Controls/RegRuleItem.cs +++ b/ContextMenuManager/Controls/RegRuleItem.cs @@ -85,7 +85,6 @@ namespace ContextMenuManager.Controls { if(key?.GetValue(rule.ValueName) == null) continue; if(key.GetValueKind(rule.ValueName) != rule.ValueKind) continue; - string value = key.GetValue(rule.ValueName)?.ToString(); if(key.GetValue(rule.ValueName).ToString().ToLower() == rule.TurnOffValue.ToString().ToLower()) return false; } @@ -215,7 +214,7 @@ namespace ContextMenuManager.Controls public static RuleAndInfo ShareWithSkype = new RuleAndInfo { Rules = new[] - { + { new RegRule(GuidBlockedItem.HKLMBLOCKED, SkypeGuidStr, null, "", RegistryValueKind.String), new RegRule(GuidBlockedItem.HKCUBLOCKED, SkypeGuidStr, null, "", RegistryValueKind.String) },