Themes(preset_type_select): fix 'auto-icon' display

This commit is contained in:
Pieter Vander Vennet 2025-08-29 02:11:58 +02:00
parent 152d93bf4b
commit 81f98e62ce
3 changed files with 24 additions and 3 deletions

View file

@ -44,8 +44,9 @@
}
function getAutoIcon(mapping: { readonly if?: TagsFilter }): Readonly<Record<string, string>> {
const ifTags = TagUtils.removeEmptyParts(mapping.if)
for (const preset of layer.presets) {
if (!new And(preset.tags).shadows(mapping.if)) {
if (!new And(preset.tags).shadows(ifTags)) {
continue
}