Skip to content

Commit 2197fcd

Browse files
committed
Set the language explicitly when writing the user-prefs. This change is needed due to the change in MathCAT where API calls override the user prefs. An API call to set the Language is used in MathCAT.py, so we need to make sure the Language gets set. The other SetPreference() calls don't matter as they are taken from NVDA settings.
1 parent 22c4069 commit 2197fcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ def validate_user_preferences():
446446

447447
@staticmethod
448448
def write_user_preferences():
449+
# Language is special because it is set elsewhere by SetPreference which overrides the user_prefs -- so set it here
450+
from . import libmathcat
451+
libmathcat.SetPreference("Language", user_preferences["Speech"]["Language"])
449452
if not os.path.exists(UserInterface.path_to_user_preferences_folder()):
450453
#create a folder for the user preferences
451454
os.mkdir(UserInterface.path_to_user_preferences_folder())

0 commit comments

Comments
 (0)