More review changes

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
jpirnay
2026-05-02 18:42:45 +02:00
co-authored by Copilot
parent ea50449f4b
commit cc9ff5bae9
10 changed files with 108 additions and 23 deletions
+6 -1
View File
@@ -278,7 +278,12 @@
info.textContent = 'Pick one or more .cpfont files.';
return;
}
const family = sanitizeFamily(familyFromFilename(files[0].name));
const families = new Set(files.map(f => sanitizeFamily(familyFromFilename(f.name))));
if (families.size > 1) {
info.textContent = 'Picked files contain multiple families — please select files from a single family.';
return;
}
const family = families.values().next().value;
info.textContent = files.length + ' file' + (files.length === 1 ? '' : 's') +
' → family "' + family + '"';
});