1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixed spell checker crash when no language is selected

This commit is contained in:
Laurent Cozic 2020-11-27 18:15:22 +00:00
parent 03942a0073
commit a48e5cd4e8

View File

@ -22,7 +22,7 @@ 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 (!v) { if (!v) {
this.session().setSpellCheckerLanguages(''); this.session().setSpellCheckerLanguages([]);
return; return;
} }