nvda
e10f46cc - Reload mathPres when reloading config (#19886)

Commit
137 days ago
Reload mathPres when reloading config (#19886) Fixes the issue described in https://github.com/nvaccess/nvda/issues/19811#issuecomment-4118942647 ### Summary of the issue: When the config is reset, MathCAT's settings are not restored. ### Description of user facing changes: MathCAT settings are restored to the saved/default values when resetting the config. ### Description of developer facing changes: None ### Description of development approach: `terminate()` then `initialize()` `mathPres` in `core.resetConfiguration()`. While we could have reapplied the restored settings to MathCAT, it is not guaranteed to be the math presentation provider, so I thought this approach was simpler and easier to understand and debug. ### Testing strategy: Ran from source. Read some math with speech style set to "simple speak". Switched to "literal speak". Read the math again. Restored settings. Read the speech a third time and ensured it was once again "simple speak". ### Known issues with pull request: This approach is going to be marginally slower than reapplying MathCAT settings if it is the running math presentation provider.
Author
Parents
Loading