fix list vs str

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-09-10 12:29:46 +02:00
parent b0c21c5448
commit 799f10f49d
7 changed files with 15 additions and 9 deletions
+3 -2
View File
@@ -258,8 +258,9 @@ def create_ui(disabled_tabs=None):
item for item in shared.opts.data_labels.items()
if item[1].section is not None and item[1].section[0] == section_id
] # find all items in this section
hidden = (section_id is None) or ('hidden' in section_id.lower()) or ('hidden' in section_text.lower()) or ('legacy' in section_id.lower()) or ('legacy' in section_text.lower())
# log.trace(f'Settings: section="{section_id}" title="{section_text}" items={len(items)} hidden={hidden}')
hidden = (section_id is None) or ('hidden' in section_id.lower()) or ('hidden' in section_text.lower())
for (key, _item) in items:
log.trace(f'Settings: id={section_id} text={section_text} key={key} hidden={hidden}')
if hidden:
for (key, _item) in items:
hidden_list.append(key)