Helicon Zoo: processing enabled/disabled engines fixed

This commit is contained in:
Ruslan Keba 2014-01-28 17:39:56 +02:00
parent b7f0b1c79c
commit 9204eba68a

View file

@ -350,10 +350,14 @@ namespace WebsitePanel.Providers.Web.HeliconZoo
switchboardCollection.Clear();
ConfigurationElement elementDisableAll = switchboardCollection.CreateElement();
elementDisableAll.SetAttributeValue("name", "*");
SetSwitchBoardValue(elementDisableAll, false);
switchboardCollection.Add(elementDisableAll);
// first disable all engines if "*" is not present in input engineNames
if (!engineNames.Contains("*"))
{
ConfigurationElement elementDisableAll = switchboardCollection.CreateElement();
elementDisableAll.SetAttributeValue("name", "*");
SetSwitchBoardValue(elementDisableAll, false);
switchboardCollection.Add(elementDisableAll);
}
foreach (string engineName in engineNames)
{