From b40ed3f66ce94e96b9c70061642d9b2aec49935d Mon Sep 17 00:00:00 2001 From: cadowtin Date: Thu, 10 Oct 2024 14:13:03 -0500 Subject: [PATCH] adds check for is icon --- scripts/helpers/forms/settingsConfigForm.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/helpers/forms/settingsConfigForm.js b/scripts/helpers/forms/settingsConfigForm.js index 9acaec1..751a6b2 100644 --- a/scripts/helpers/forms/settingsConfigForm.js +++ b/scripts/helpers/forms/settingsConfigForm.js @@ -271,12 +271,14 @@ export class SettingsConfigForm extends FormApplication { const processSettings = (settingGroup, dataGroup) => { for (const [key, settingPathOrGroup] of Object.entries(settingGroup)) { - if (typeof settingPathOrGroup === "string") { - updateSetting(settingPathOrGroup, dataGroup[key]); - } else if (settingPathOrGroup.type === "number") { - updateSetting(settingPathOrGroup.path, dataGroup[key]); - } else if (typeof settingPathOrGroup === "object") { - processSettings(settingPathOrGroup, dataGroup[key]); + if (key !== 'icon') { + if (typeof settingPathOrGroup === "string") { + updateSetting(settingPathOrGroup, dataGroup[key]); + } else if (settingPathOrGroup.type === "number") { + updateSetting(settingPathOrGroup.path, dataGroup[key]); + } else if (typeof settingPathOrGroup === "object") { + processSettings(settingPathOrGroup, dataGroup[key]); + } } } };