log theme being loaded

This commit is contained in:
Bruno Windels 2022-05-18 17:48:03 +02:00
parent a550788788
commit 03ab1ee2c7

View file

@ -44,7 +44,7 @@ export class ThemeLoader {
} }
setTheme(themeName: string, log?: ILogItem) { setTheme(themeName: string, log?: ILogItem) {
this._platform.logger.wrapOrRun(log, "setTheme", () => { this._platform.logger.wrapOrRun(log, {l: "change theme", id: themeName}, () => {
const themeLocation = this._themeMapping[themeName]; const themeLocation = this._themeMapping[themeName];
if (!themeLocation) { if (!themeLocation) {
throw new Error( `Cannot find theme location for theme "${themeName}"!`); throw new Error( `Cannot find theme location for theme "${themeName}"!`);