hide preset name when <unnamed> (matchin [preset] behavior)

This commit is contained in:
2026-01-13 10:33:55 +01:00
parent ca80a6cfe6
commit 12b585a6d2

View File

@@ -404,7 +404,7 @@ function format_slot_name(id) {
text = '[' + text + ']';
}
// If slot has a name, append it to the preset name
if (slots[id].name != null) {
if ([null, '<(unnamed)>'].indexOf(slots[id].name) < 0 ) {
text += ': ' + slots[id].name;
}
text = text.toString();