Skip to content
Snippets Groups Projects
Commit 2a8a5d9a authored by Eric Oulashin's avatar Eric Oulashin
Browse files

Small change in readColorConfig() in SlyEdit_IceStuff.js

parent 28babfed
No related branches found
No related tags found
1 merge request!294Made a fix for the refactored theme config reading code in much of the Digital Distortion tools
Pipeline #4300 passed
......@@ -48,12 +48,11 @@ function readColorConfig(pFilename)
var colorSettingsObj = themeFile.iniGetObject();
themeFile.close();
// Make a backup of the menuOptClassicColors setting so we can set it
// back in the Ice color settings object after setting the colors.
var useClassicColorsBackup = gConfigSettings.iceColors.menuOptClassicColors;
// Ice-specific colors
for (var prop in gConfigSettings.iceColors)
{
if (prop == "menuOptClassicColors") // Skip this one (it's a boolean value, not a color)
continue;
if (colorSettingsObj.hasOwnProperty(prop))
{
// Using toString() to ensure the color attributes are strings (in case the value is just a number)
......@@ -76,8 +75,6 @@ function readColorConfig(pFilename)
gConfigSettings.genColors[prop] = attrCodeStr(value);
}
}
gConfigSettings.iceColors.menuOptClassicColors = useClassicColorsBackup;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment