eric7/UI/UserInterface.py

branch
eric7
changeset 8428
2deec2f8a9ab
parent 8419
32506bc52886
child 8430
14c69f0ccca5
--- a/eric7/UI/UserInterface.py	Tue Jun 15 19:42:36 2021 +0200
+++ b/eric7/UI/UserInterface.py	Wed Jun 16 17:47:50 2021 +0200
@@ -743,6 +743,11 @@
         SpellChecker.setDefaultLanguage(
             Preferences.getEditor("SpellCheckingDefaultLanguage"))
         
+        with contextlib.suppress(ImportError, AttributeError):
+            from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
+            SpellCheckMixin.setDefaultLanguage(
+                Preferences.getEditor("SpellCheckingDefaultLanguage"))
+        
         # attributes for the last shown configuration page and the
         # extended configuration entries
         self.__lastConfigurationPageName = ""
@@ -6202,6 +6207,11 @@
         SpellChecker.setDefaultLanguage(
             Preferences.getEditor("SpellCheckingDefaultLanguage"))
         
+        with contextlib.suppress(ImportError, AttributeError):
+            from EricWidgets.EricSpellCheckedTextEdit import SpellCheckMixin
+            SpellCheckMixin.setDefaultLanguage(
+                Preferences.getEditor("SpellCheckingDefaultLanguage"))
+        
         if self.__layoutType == "Sidebars":
             delay = Preferences.getUI("SidebarDelay")
             self.leftSidebar.setDelay(delay)

eric ide

mercurial