Commit b0c6e1f
keyboardManager: don't append locale layout if already present (#13616)
* keyboardManager: don't append locale layout if already present
_buildGroupStrings() unconditionally appends the locale-derived layout
to the XKB group. When the user's configured layouts already include
the locale layout (e.g. 'ru' with ru_RU.UTF-8 locale), this produces
duplicates like 'us,ru,ru', adding a phantom third layout to the
switcher.
Check whether the locale layout is already present before appending it.
* Rename variable to alreadyIncluded for clarity
Address code review feedback: rename `dominated` to `alreadyIncluded`
for better self-description of the boolean's purpose.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---------
Co-authored-by: Yuriy Tolpygo <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>1 parent 5304a85 commit b0c6e1f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
0 commit comments