electron-userland / electron-spellchecker

Implement spellchecking, correctly
MIT License
239 stars 83 forks source link

Avoid dispatching a "changed" event if the language wasn't changed #168

Open jpawlicki opened 4 years ago

jpawlicki commented 4 years ago

In the case that actualLang == currentSpellcheckerLanguage, there is no need to fire a spellchecker changed event. This is already the behavior in the happy case (see if statement on old line 411). This PR makes that consistent with the !dict error case.

jpawlicki commented 4 years ago

Friendly ping.