Helicon Zoo: processing enabled/disabled engines fixed
This commit is contained in:
parent
b7f0b1c79c
commit
9204eba68a
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue