tui: ignore invalid custom themes to prevent startup crashes (#24645)

This commit is contained in:
Dax 2026-04-28 13:58:55 -04:00 committed by GitHub
parent c00058ed7a
commit d54ffbda1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -500,7 +500,8 @@ async function getCustomThemes() {
symlink: true,
})) {
const name = path.basename(item, ".json")
result[name] = await Filesystem.readJson(item)
const theme = await Filesystem.readJson(item)
if (isTheme(theme)) result[name] = theme
}
}
return result