From 2a8a5d9acc26c475e1d0ff88ecee22f6becefd0d Mon Sep 17 00:00:00 2001 From: Eric Oulashin <eric.oulashin@gmail.com> Date: Mon, 15 May 2023 14:23:10 -0700 Subject: [PATCH] Small change in readColorConfig() in SlyEdit_IceStuff.js --- exec/SlyEdit_IceStuff.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exec/SlyEdit_IceStuff.js b/exec/SlyEdit_IceStuff.js index f931e1bd06..ef489d6a9c 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; } } -- GitLab