Remove method

This commit is contained in:
RMidhunSuresh 2022-05-12 13:28:11 +05:30
parent b306344739
commit 654e83a5f9
2 changed files with 1 additions and 8 deletions

View file

@ -182,7 +182,7 @@ export class Platform {
); );
const manifests = this.config["themeManifests"]; const manifests = this.config["themeManifests"];
await this._themeLoader?.init(manifests); await this._themeLoader?.init(manifests);
await this._themeLoader?.loadThemeFromSetting(); this._themeLoader?.setTheme(await this._themeLoader.getActiveTheme());
} }
_createLogger(isDevelopment) { _createLogger(isDevelopment) {

View file

@ -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) { setTheme(themeName: string) {
const themeLocation = this._themeMapping[themeName]; const themeLocation = this._themeMapping[themeName];
if (!themeLocation) { if (!themeLocation) {