提交 0572621c 编写于 作者: T Tom Meschter

Merge pull request #1780 from tmeschter/Fix1596

Set correct checkmarks in "Set Rule Set Severity"
......@@ -267,11 +267,15 @@ private void UpdateSeverityMenuItemsChecked()
foreach (var diagnosticItem in group)
{
ReportDiagnostic ruleSetSeverity;
if (specificOptions.TryGetValue(diagnosticItem.Descriptor.Id, out ruleSetSeverity) &&
ruleSetSeverity != ReportDiagnostic.Default)
if (specificOptions.TryGetValue(diagnosticItem.Descriptor.Id, out ruleSetSeverity))
{
selectedItemSeverities.Add(ruleSetSeverity);
}
else
{
// The rule has no setting.
selectedItemSeverities.Add(ReportDiagnostic.Default);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册