Enable/disable the 'Report normalized' checkbox when opening the speech panel#16810
Conversation
|
Cc @LeonarddeR FYI. |
|
Good catch. I thought I covered this by adding onChoiceEventHandler to the combo box before calling SetSelection on the combobox. I was pretty sure it once worked. May be it has to do with timing. |
I do not know if it has worked this way in the past. In any case, for the normalize combo-box, it would not have worked because the checkbox to enable/disable is not yet created when you call |
|
Ah yeah, that's pretty obvious actually. |
WalkthroughThe change in Changes
Tip AI model upgrade
|
| self.reportNormalizedForCharacterNavigationCheckBox.SetValue( | ||
| config.conf["speech"]["reportNormalizedForCharacterNavigation"] | ||
| ) |
There was a problem hiding this comment.
@CyrilleB79 - I just realised, should this have been removed? Why wasn't this working?
There was a problem hiding this comment.
@seanbudd, it was (and it is) working. These lines control the checkbox's value, i.e. checked vs unchecked.
On the other hand, the modification of this PR instead deal with the control's state, i.e. enabled (normally activable) / disabled (greyed out, not activable).
These are two separate thing.
Link to issue number:
Fix-up of #16521.
Summary of the issue:
When opening the speech settings panel, the checkbox "Report 'Normalized' when navigating by character" is enabled, no matter the value of the "Unicode normalization" combo-box.
Description of user facing changes
When opening the speech settings panel, the checkbox "Report 'Normalized' when navigating by character" will be enabled or disabled (greyed out), depending on the value of the "Unicode normalization" combo-box, as it is already the case when the selection of this combo-box is modified.
Description of development approach
As done for "Ignore blank lines for line indentation reporting" checkbox in Document formatting settings, explicitly call the
.Enablemethod when the panel is initialized.Testing strategy:
Manual testing.
Known issues with pull request:
None
Code Review Checklist:
Summary by CodeRabbit