Skip to content

Commit 3ec467c

Browse files
committed
Fix to #85.
This might have been a more general problem caused whenever the pref file is new.
1 parent 3f08248 commit 3ec467c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ def get_ui_values(self):
530530
Braille_BrailleNavHighlight[self.m_choiceBrailleHighlights.GetSelection()]
531531
)
532532
user_preferences["Braille"]["BrailleCode"] = self.m_choiceBrailleMathCode.GetStringSelection()
533+
if "NVDAAddOn" not in user_preferences:
534+
user_preferences["NVDAAddOn"] = {"LastCategory": "0"}
533535
user_preferences["NVDAAddOn"]["LastCategory"] = self.m_listBoxPreferencesTopic.GetSelection()
534536

535537
@staticmethod

0 commit comments

Comments
 (0)