Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 3ec467c

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)