Hide Advanced Appearance Settings

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-09-18 11:34:35 +01:00
parent 687a2e56b2
commit 9dbc1dbc85

View file

@ -36,6 +36,7 @@ import EventTilePreview from '../../../elements/EventTilePreview';
import StyledRadioGroup from "../../../elements/StyledRadioGroup"; import StyledRadioGroup from "../../../elements/StyledRadioGroup";
import classNames from 'classnames'; import classNames from 'classnames';
import { SettingLevel } from "../../../../../settings/SettingLevel"; import { SettingLevel } from "../../../../../settings/SettingLevel";
import {UIFeature} from "../../../../../settings/UIFeature";
interface IProps { interface IProps {
} }
@ -386,6 +387,8 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
}; };
private renderAdvancedSection() { private renderAdvancedSection() {
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
const brand = SdkConfig.get().brand; const brand = SdkConfig.get().brand;
const toggle = <div const toggle = <div
className="mx_AppearanceUserSettingsTab_AdvancedToggle" className="mx_AppearanceUserSettingsTab_AdvancedToggle"