From 8370597967fd13e3db08d44619daeda684d66a25 Mon Sep 17 00:00:00 2001 From: Jonathan Poelen Date: Tue, 21 Nov 2023 18:58:11 +0100 Subject: [PATCH] [config][page] enum set type should be not decomposed in default value --- projects/redemption_configs/pages/config.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/projects/redemption_configs/pages/config.html b/projects/redemption_configs/pages/config.html index 57cde1a9a7..532b01306d 100644 --- a/projects/redemption_configs/pages/config.html +++ b/projects/redemption_configs/pages/config.html @@ -557,15 +557,17 @@

${sectionPrefix}Section: ${realSec const e = enumDatas[type]; extraDescription = e.intValues; description ??= e.description; - preferHex = e.category === 'flags'; - const flags = []; - for (const info of e.values) { - if (info.value && (info.value & option.value) === info.value) { - flags.push(`0x${info.value.toString(16)}`); + preferHex = (e.category === 'flags'); + if (e.category !== 'set') { + const flags = []; + for (const info of e.values) { + if (info.value && (info.value & option.value) === info.value) { + flags.push(`0x${info.value.toString(16)}`); + } + } + if (flags.length > 1) { + humanValue = flags.join(' + '); } - } - if (flags.length > 1) { - humanValue = flags.join(' + '); } } else if (type === 'list') {