First steps for a decent custom theme generator
This commit is contained in:
parent
a57b7d93fa
commit
2052976909
82 changed files with 1880 additions and 1311 deletions
9
State.ts
9
State.ts
|
@ -201,8 +201,15 @@ export class State {
|
|||
continue;
|
||||
}
|
||||
try {
|
||||
const layout = FromJSON.FromBase64(customLayout.data);
|
||||
if(layout.id === undefined){
|
||||
// This is an old style theme
|
||||
// We remove it
|
||||
customLayout.setData(undefined);
|
||||
continue;
|
||||
}
|
||||
installedThemes.push({
|
||||
layout: FromJSON.FromBase64(customLayout.data),
|
||||
layout: layout,
|
||||
definition: customLayout.data
|
||||
});
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue