Fix for error on Chromium UIA combo-box when restoring Advanced Settings#12302
Conversation
|
Cc @seanbudd, @XLTechie |
|
Neither issue occurs in the PR build. Well done.
I will however note, as I think you know, that pressing Restore Defaults while
the checkbox is unchecked, does not restore the defaults.
That is definitely not the expected behavior, but I don't know how long it has
been the case. It probably preceded the bug this PR solves.
|
|
Regarding the other issue (let's call it the "Visually modified options not saved"), I describe it here to keep a track. I cannot open a separate issue for now since there is no version of NVDA where it occurs since the error of #12299 happens before and since Wx 4.1.1 was introduced after Chromium UIA option. STR:
Expected behaviour: Actual behaviour: Note: @seanbudd, there are 2 options:
Personally, I prefer the first option, because:
|
OzancanKaratas
left a comment
There was a problem hiding this comment.
This is great! It worked as expected. @seanbudd, please review.
seanbudd
left a comment
There was a problem hiding this comment.
@CyrilleB79 - no worries at all for taking this up, I was planning on starting this investigation today and I am glad that you've done the work.
After a quick test, the change I've suggested seems to fix the "Visually modified options not saved issue" but I will do some further testing to confirm.
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
|
Oh my bad! |
See test results for failed build of commit f94db16c60 |
Link to issue number:
Fixes #12299
Summary of the issue:
Using .Selection on a combo-box rather than .GetSelection was causing an error when restoring Advanced settings to default.
Description of how this pull request fixes the issue:
Modified .Selection to .GetSelection()
Testing strategy:
Tested restoration with and without the advanced settings panel enabled.
The window is correctly closed when pressing "OK".
Known issues with pull request:
During these tests, I have identified another path that may cause the settings not to be saved. Issue coming soon.
This PR only fixes the combo-box .Selection error that was probably introduced when with Chromium UIA feature.
It does not fixes the issue of advanced settings not saved correctly (probably introduced by Wx 4.1.1)
Change log entry:
None: alpha regression
Code Review Checklist:
This checklist is a reminder of things commonly forgotten in a new PR.
Authors, please do a self-review and confirm you have considered the following items.
Mark items you have considered by checking them.
You can do this when editing the Pull request description with an x:
[ ]becomes[x].You can also check the checkboxes after the PR is created.