diff --git a/exec/SlyEdit_IceStuff.js b/exec/SlyEdit_IceStuff.js index f931e1bd069cd0f6661f0a6611a89fda18433d06..ef489d6a9ccfd37c78d757eba927a7c3b75b5e91 100644 --- a/exec/SlyEdit_IceStuff.js +++ b/exec/SlyEdit_IceStuff.js @@ -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; } }