Merge pull request #947 from MTRNord/patch-1
Fix vector-im/riot-web#4042
This commit is contained in:
commit
02c2930531
1 changed files with 8 additions and 6 deletions
|
@ -545,12 +545,14 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLanguageChange: function(l) {
|
onLanguageChange: function(newLang) {
|
||||||
UserSettingsStore.setLocalSetting('language', l);
|
if(this.state.language !== newLang) {
|
||||||
|
UserSettingsStore.setLocalSetting('language', newLang);
|
||||||
this.setState({
|
this.setState({
|
||||||
language: l,
|
language: newLang,
|
||||||
});
|
});
|
||||||
PlatformPeg.get().reload();
|
PlatformPeg.get().reload();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_renderLanguageSetting: function () {
|
_renderLanguageSetting: function () {
|
||||||
|
|
Loading…
Reference in a new issue