[nvda] revision 258-259 - revert to saved configuration and key echo bug fix

Hi all,

These revisions add a 'revert to saved configuration' command to the NVDA menu in the GUI.

There is also a bug fixed with character key echo not working when you first start NVDA and don't move the focus anywhere.

The changelog is as follows:

*Added an 'applyConfiguration' function to core.py which loads the configuration, installs the correct language, and also initialises audio, so that the right synth and speech settings are set up.

The config module no longer loads the config on import. Also config.load now seeks back to the start of confspec. Also all parts of NVDA import all of config rather than just conf, for the reason that when it is reloaded, all the references to conf will be wrong. The only way to get around this would be to have a way to reload the config file in to the configObj itself.

*Added a 'revert to saved configuration' command on the NVDA menu in the GUI.

*Fixed a bug in isTypingProtected where it would cause an exception if NVDA has just started and the focus hasn't been set yet.



Jamie, I Spent like an hour trying to work out why the configuration was being completely bruitalised after a reload with applyConfiguration. Everything turned in to strings, and all the comments and blank lines went missing from nvda.ini. It would be nice if configObj supported the confspec as a normal string... well, all solved with a seek to 0 on confspec. :)



Mick



To post messages to the list send email to
nvda@xxxxxxxxxxxxx
To unsubscribe from the list send a blank message to:
nvda-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject field.
Thank you for your continued support of Nonvisual Desktop Access, an open 
source free screen reader for Microsoft Windows:
http://www.kulgan.net/nvda/

Other related posts: