-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix ctkLanguageComboBox normalizing default language and selection
Discovered during the resolution of issues in `ctkLanguageComboBoxTest`, this commit addresses a bug in the normalization and selection of the default language in `ctkLanguageComboBox`. It introduces the function `normalizeLocaleCode` to ensure that the default locale code is set to its normalized value if valid. Furthermore, the `updateLanguageItems()` function is updated to select the default locale code if the user has not already made a selection.
- Loading branch information
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters