mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
This commit is contained in:
parent
063230af03
commit
a30110b5d3
@ -546,11 +546,13 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onLanguageChange: function(l) {
|
||||
UserSettingsStore.setLocalSetting('language', l);
|
||||
this.setState({
|
||||
language: l,
|
||||
});
|
||||
PlatformPeg.get().reload();
|
||||
if(this.state.language !== l) {
|
||||
UserSettingsStore.setLocalSetting('language', l);
|
||||
this.setState({
|
||||
language: l,
|
||||
});
|
||||
PlatformPeg.get().reload();
|
||||
}
|
||||
},
|
||||
|
||||
_renderLanguageSetting: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user