mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
Update subproject commit with dirty changes
This commit is contained in:
Submodule src/browser/base/content/zen-components updated: 078f5ff992...4d8d109e78
@@ -99,6 +99,22 @@ var gZenMarketplaceManager = {
|
||||
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() {
|
||||
if (!this._themes) {
|
||||
if (!(await IOUtils.exists(this.themesDataFile))) {
|
||||
|
Reference in New Issue
Block a user