Refactor ZenThemesImporter to skip disabled themes when writing the stylesheet

This commit is contained in:
mauro-balades 2024-09-14 12:46:13 +02:00
parent 03514248e5
commit 4d8d109e78

View file

@ -12,6 +12,9 @@ var gZenStylesheetManager = {
async writeStylesheet(path, themes) { async writeStylesheet(path, themes) {
let content = kZenStylesheetThemeHeader; let content = kZenStylesheetThemeHeader;
for (let theme of themes) { for (let theme of themes) {
if (theme.disabled) {
continue;
}
content += this.getThemeCSS(theme); content += this.getThemeCSS(theme);
} }
content += kenStylesheetFooter; content += kenStylesheetFooter;