forked from mystiq/hydrogen-web
Don't show theme chooser on dev
This commit is contained in:
parent
bb3368959f
commit
c39f0d2efb
2 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,9 @@ export class SettingsViewModel extends ViewModel {
|
|||
this.sentImageSizeLimit = await this.platform.settingsStorage.getInt("sentImageSizeLimit");
|
||||
this.pushNotifications.supported = await this.platform.notificationService.supportsPush();
|
||||
this.pushNotifications.enabled = await this._session.arePushNotificationsEnabled();
|
||||
this._activeTheme = await this.platform.getActiveTheme();
|
||||
if (!import.meta.env.DEV) {
|
||||
this._activeTheme = await this.platform.getActiveTheme();
|
||||
}
|
||||
this.emitChange("");
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ export class SettingsView extends TemplateView {
|
|||
t.h3("Preferences"),
|
||||
row(t, vm.i18n`Scale down images when sending`, this._imageCompressionRange(t, vm)),
|
||||
t.map(vm => vm.activeTheme, (theme, t) => {
|
||||
return row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm, theme));
|
||||
return !import.meta.env.DEV? row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm, theme)): null;
|
||||
}),
|
||||
);
|
||||
settingNodes.push(
|
||||
|
|
Loading…
Reference in a new issue