This commit is contained in:
parent
063230af03
commit
a30110b5d3
1 changed files with 7 additions and 5 deletions
|
@ -546,11 +546,13 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onLanguageChange: function(l) {
|
onLanguageChange: function(l) {
|
||||||
UserSettingsStore.setLocalSetting('language', l);
|
if(this.state.language !== l) {
|
||||||
this.setState({
|
UserSettingsStore.setLocalSetting('language', l);
|
||||||
language: l,
|
this.setState({
|
||||||
});
|
language: l,
|
||||||
PlatformPeg.get().reload();
|
});
|
||||||
|
PlatformPeg.get().reload();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_renderLanguageSetting: function () {
|
_renderLanguageSetting: function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue