Fix error when displaying math panel#19820
Conversation
|
System test chrome_annotations is failing; unrelated to this PR. |
seanbudd
left a comment
There was a problem hiding this comment.
Thanks for the fix @CyrilleB79
|
Hi, I'm not sure if this is happening after this PR, but in today's latest alpha version, when I navigate through the MathCat options, I get the following error: Also, not all of the previous options are displayed anymore. When I click Apply or OK, I can no longer reopen the NVDA options again, and I get the following error saying that another panel is already open. On the other hand, if I press Esc instead of OK, NVDA restarts automatically. Also, I’ve noticed that once you go through the MathCat options, the voice and language now appear at the beginning of any category, even if you’re not in the Math category. And in fact, the magnifier options also appear in the math options if you access them from the top. If you access the math options from the bottom, the remote access options appear instead. It’s as if the options from adjacent categories are being filtered into the math options. And I don’t see the selected language actually being saved either. Even if I restart NVDA after selecting “Automatic,” I still don’t have any value selected there. |
|
@brunoprietog please provide the exact version number. Thanks. |
|
@CyrilleB79 the version is alpha-55200,69c1fa0b (2026.2.0.55200) thanks 🙏 |
|
I think the version from that day didn't have this PR yet, I've now updated to alpha-55275,8d4e1994 (2026.2.0.55275) and I'm no longer seeing these erratic behaviors |
Link to issue number:
Fix-up of #19740
Summary of the issue:
After the merge of #19740, the math panel cannot be displayed and the following error is logged:
Description of user facing changes:
The math panel can be displayed again.
Description of developer facing changes:
None
Description of development approach:
enumerateon the language list to be able to retrieve its index.filterfunction + lambda since the previous code seemed less readable and less modern Python syntax. This is debatable though, and I can restore the old syntax, just addingenumerate, if you prefer.DEBUGWARNINGlog when the config language is not found in supported languages.Testing strategy:
Manual tests:
Known issues with pull request:
None
Code Review Checklist: