allow code theme to be shareable

Этот коммит содержится в:
Florian Orben
2015-10-28 20:04:22 +01:00
родитель 3c8fd99425
Коммит d630567c91
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@@ -100,7 +100,9 @@ export default class UserSettingsAppearance extends React.Component {
);
}
updateTheme(theme) {
theme.codeTheme = this.state.theme.codeTheme;
if (!theme.codeTheme) {
theme.codeTheme = this.state.theme.codeTheme;
}
this.setState({theme});
Utils.applyTheme(theme);
}