Prevent multiple settings dialogs opened#13117
Conversation
|
@seanbudd you write:
To clarify why I had added the "focus desktop" step:
|
|
This is quite specific behavior to test. I'm not sure there would be ongoing value from running this system test. This test will be helpful while fixing the issue, but after that I'm not so sure. In any case, if we do decide to integrate this, I think the test should be kept separate from the "get GUI screenshot" test. I see that the name of that robot file "settingsDialogs" is the more appropriate for this test, so I'd suggest moving the screenshot gathering to something more specific like "settingsDialogsVisualCheck" |
|
I think once the issue is fixed it should be excluded from the build, and removed if we don't see value in keeping it.
I agree |
See test results for failed build of commit 794dd23e5b |
See test results for failed build of commit a8900369f9 |
See test results for failed build of commit 388be3416f |
See test results for failed build of commit 93853ef124 |
Link to issue number:
Fixes #12818, #12994
Summary of the issue:
Two settings dialogs can be opened when using the steps in #12818.
Wx destroy events (and other events) are sent to parent dialogs for handling. Read More.
When navigating to braille or speech settings, a
ExpandoTextCtrlis initialized.The ExpandoTextCtrl creates a destroy event as part of initialization, this caused the NVDASettings dialog to be incorrectly set to destroyed.
Description of how this pull request fixes the issue:
Filter the destroy event on NVDA Settings dialogs by checking if the dialog itself is being destroyed, as opposed to a child control.
Testing strategy:
system tests are used in the commit history to confirm the fix.
Manual testing of the steps in #12818 also confirms this fix.
Known issues with pull request:
In many cases we perform actions like this based on wx events which are coming from child controls.
Documentation of this is added in #13325
Change log entries:
Bug fixes
Code Review Checklist: