avoid string true for boolean variable

This commit is contained in:
Laurent Mazet 2020-09-13 11:39:40 +02:00
parent 754e1770a5
commit 677724b76c
1 changed files with 2 additions and 2 deletions

View File

@ -260,11 +260,11 @@
return;
}
if (!force && getSetting("spellCheckerEnabled") !== "true") {
if (!force && !getSetting("spellCheckerEnabled")) {
myConfirm(
_("Spell checking requires Trivabble to download a dictionary. Do you confirm?"),
function () {
setSetting("spellCheckerEnabled", "true");
setSetting("spellCheckerEnabled", true);
getDictionary(code, callback, true);
}
);