|
|
@ -1026,7 +1026,7 @@
|
|
|
|
const currentValue = window.getSettingValue('spell-check');
|
|
|
|
const currentValue = window.getSettingValue('spell-check');
|
|
|
|
// if undefined, it means 'default' so true. but we have to toggle it, so false
|
|
|
|
// if undefined, it means 'default' so true. but we have to toggle it, so false
|
|
|
|
// if not undefined, we take the opposite
|
|
|
|
// if not undefined, we take the opposite
|
|
|
|
const newValue = currentValue !== undefined? !currentValue : false;
|
|
|
|
const newValue = currentValue !== undefined ? !currentValue : false;
|
|
|
|
window.Events.setSpellCheck(newValue);
|
|
|
|
window.Events.setSpellCheck(newValue);
|
|
|
|
window.pushToast({
|
|
|
|
window.pushToast({
|
|
|
|
description: window.i18n('spellCheckDirty'),
|
|
|
|
description: window.i18n('spellCheckDirty'),
|
|
|
|