Remove method
This commit is contained in:
parent
b306344739
commit
654e83a5f9
2 changed files with 1 additions and 8 deletions
|
@ -182,7 +182,7 @@ export class Platform {
|
|||
);
|
||||
const manifests = this.config["themeManifests"];
|
||||
await this._themeLoader?.init(manifests);
|
||||
await this._themeLoader?.loadThemeFromSetting();
|
||||
this._themeLoader?.setTheme(await this._themeLoader.getActiveTheme());
|
||||
}
|
||||
|
||||
_createLogger(isDevelopment) {
|
||||
|
|
|
@ -44,13 +44,6 @@ export class ThemeLoader {
|
|||
}
|
||||
}
|
||||
|
||||
async loadThemeFromSetting() {
|
||||
const themeName = await this._platform.settingsStorage.getString( "theme");
|
||||
if (themeName) {
|
||||
this.setTheme(themeName);
|
||||
}
|
||||
}
|
||||
|
||||
setTheme(themeName: string) {
|
||||
const themeLocation = this._themeMapping[themeName];
|
||||
if (!themeLocation) {
|
||||
|
|
Reference in a new issue