Skip to content

Commit 33349eb

Browse files
committed
Workaround for bug nvaccess/nvda#17563 in NVDA 2025.1 alpha
It is also a minor speedup in that it no longer computes the braille string when there is no braille display.
1 parent e28d42d commit 33349eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ def script_navigate(self, gesture: KeyboardInputGesture):
298298
# Translators: this message directs users to look in the log file
299299
speech.speakMessage(_("Error in navigating math: see NVDA error log for details"))
300300

301+
if not braille.handler.enabled:
302+
return
303+
301304
try:
302305
# update the braille to reflect the nav position (might be excess code, but it works)
303306
nav_node = libmathcat.GetNavigationMathMLId()

0 commit comments

Comments
 (0)