Update subproject commit with dirty changes

This commit is contained in:
mauro-balades
2024-09-14 12:46:15 +02:00
parent 02e51fc828
commit 26a15abfd4
2 changed files with 17 additions and 1 deletions

View File

@@ -99,6 +99,22 @@ var gZenMarketplaceManager = {
this.triggerThemeUpdate(); this.triggerThemeUpdate();
}, },
async disableTheme(themeId) {
let themes = await this._getThemes();
let theme = themes[themeId];
theme.disabled = true;
await IOUtils.writeJSON(this.themesDataFile, themes);
this.triggerThemeUpdate();
},
async enableTheme(themeId) {
let themes = await this._getThemes();
let theme = themes[themeId];
theme.disabled = false;
await IOUtils.writeJSON(this.themesDataFile, themes);
this.triggerThemeUpdate();
},
async _getThemes() { async _getThemes() {
if (!this._themes) { if (!this._themes) {
if (!(await IOUtils.exists(this.themesDataFile))) { if (!(await IOUtils.exists(this.themesDataFile))) {