mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
This commit is contained in:
parent
f5b5cf74c5
commit
021cdf8034
@ -52,12 +52,9 @@ export default class SpellCheckerServiceDriverNative extends SpellCheckerService
|
|||||||
|
|
||||||
// If we pass an empty array, it disables spell checking
|
// If we pass an empty array, it disables spell checking
|
||||||
// https://github.com/electron/electron/issues/25228
|
// https://github.com/electron/electron/issues/25228
|
||||||
if (effectiveLanguages.length === 0) {
|
|
||||||
this.session().setSpellCheckerLanguages([]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.session().setSpellCheckerLanguages(effectiveLanguages);
|
this.session().setSpellCheckerLanguages(effectiveLanguages);
|
||||||
|
this.session().setSpellCheckerEnabled(effectiveLanguages.length > 0);
|
||||||
logger.info(`Set effective languages to "${effectiveLanguages}"`);
|
logger.info(`Set effective languages to "${effectiveLanguages}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user