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();
|
switchboardCollection.Clear();
|
||||||
|
|
||||||
ConfigurationElement elementDisableAll = switchboardCollection.CreateElement();
|
// first disable all engines if "*" is not present in input engineNames
|
||||||
elementDisableAll.SetAttributeValue("name", "*");
|
if (!engineNames.Contains("*"))
|
||||||
SetSwitchBoardValue(elementDisableAll, false);
|
{
|
||||||
switchboardCollection.Add(elementDisableAll);
|
ConfigurationElement elementDisableAll = switchboardCollection.CreateElement();
|
||||||
|
elementDisableAll.SetAttributeValue("name", "*");
|
||||||
|
SetSwitchBoardValue(elementDisableAll, false);
|
||||||
|
switchboardCollection.Add(elementDisableAll);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (string engineName in engineNames)
|
foreach (string engineName in engineNames)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue