tui: ignore invalid custom themes to prevent startup crashes (#24645)
This commit is contained in:
parent
c00058ed7a
commit
d54ffbda1c
1 changed files with 2 additions and 1 deletions
|
|
@ -500,7 +500,8 @@ async function getCustomThemes() {
|
||||||
symlink: true,
|
symlink: true,
|
||||||
})) {
|
})) {
|
||||||
const name = path.basename(item, ".json")
|
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
|
return result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue