mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 18:21:38 +03:00
Set spell-check languages without reloading
This commit is contained in:
parent
7609f2004e
commit
ead00dcded
1 changed files with 5 additions and 1 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue