Refactor ZenThemeMarketplaceParent to enable the installed theme

This commit is contained in:
mauro-balades 2024-09-14 22:55:45 +02:00
parent e5b3bc3bda
commit ff7a75998b

View file

@ -8,6 +8,7 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent {
case 'ZenThemeMarketplace:InstallTheme': {
console.info('ZenThemeMarketplaceParent: Updating themes');
const theme = message.data.theme;
theme.enabled = true;
const themes = await this.getThemes();
themes[theme.id] = theme;
this.updateThemes(themes);