This commit is contained in:
Marcel 2017-05-27 21:11:00 +02:00 committed by GitHub
parent 063230af03
commit a30110b5d3

View File

@ -546,11 +546,13 @@ module.exports = React.createClass({
}, },
onLanguageChange: function(l) { onLanguageChange: function(l) {
if(this.state.language !== l) {
UserSettingsStore.setLocalSetting('language', l); UserSettingsStore.setLocalSetting('language', l);
this.setState({ this.setState({
language: l, language: l,
}); });
PlatformPeg.get().reload(); PlatformPeg.get().reload();
}
}, },
_renderLanguageSetting: function () { _renderLanguageSetting: function () {