Persist selected index in Remote Access connection dialog" #18701
Fixes #18691
Summary of the issue:
Remote Access settings are only persisted for the currently active NVDA language. Changing NVDA's interface language will cause the selections to be forgotten.
Description of user facing changes:
Selections in the Remote Access connection dialog are now persisted across languages.
Description of developer facing changes:
None
Description of development approach:
Added a new wx.lib.agw.persist.persistence_handler.AbstractHandler subclass that persists wx.Choice.Selection (the default is to persist StringSelection).
Used this persistence handler in place of the default when registering wx.Choice controls with the global persistence manager in _remoteClient.dialogs.DirectConnectDialog._registerAndRestorePersistentControls.