Set spell-check languages without reloading

This commit is contained in:
Šimon Brandner 2020-11-29 14:46:09 +01:00
parent 7609f2004e
commit ead00dcded

View file

@ -187,7 +187,11 @@ export default class GeneralUserSettingsTab extends React.Component {
_onSpellCheckLanguagesChange = (languages) => { _onSpellCheckLanguagesChange = (languages) => {
SettingsStore.setValue("spell-check-languages", null, SettingLevel.DEVICE, languages); SettingsStore.setValue("spell-check-languages", null, SettingLevel.DEVICE, languages);
this.setState({spellCheckLanguages: languages}) this.setState({spellCheckLanguages: languages})
PlatformPeg.get().reload();
const plaf = PlatformPeg.get();
if (plaf) {
plaf.setLanguage(languages);
}
}; };
_onPasswordChangeError = (err) => { _onPasswordChangeError = (err) => {