Try harder to ensure a spell checker is enabled by default

When no spell checker langauges are explicitly set, use the set of
preferred languages for spell checking. Make spell-check-languages
setting nullable so we can differenciate between "use default"
and "disable spellchecking".
This commit is contained in:
Michael Gratton 2019-05-23 00:04:45 +02:00 committed by Michael James Gratton
parent adea4618d6
commit f27f2fb91f
2 changed files with 41 additions and 16 deletions

View file

@ -63,10 +63,12 @@
<description>True if we should display a short preview of each message.</description>
</key>
<key name="spell-check-languages" type="as">
<default>[]</default>
<summary>Languages that shall be used in the spell checker</summary>
<description>List of the languages to use in the spell checker.</description>
<key name="spell-check-languages" type="mas">
<default>nothing</default>
<summary>Languages that shall be used in the spell checker</summary>
<description>A list of POSIX locales, with the empty list
disabling spell checking and the null list using desktop
languages by default.</description>
</key>
<key name="spell-check-visible-languages" type="as">