Merge pull request #947 from MTRNord/patch-1

Fix vector-im/riot-web#4042
This commit is contained in:
Matthew Hodgson 2017-05-27 23:29:15 +01:00 committed by GitHub
commit 02c2930531

View file

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