Skip to content

Commit

Permalink
minor nit
Browse files Browse the repository at this point in the history
  • Loading branch information
DJm00n committed Jun 14, 2023
1 parent fcbf1a3 commit 96ad347
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ private string LanguageTag
// https://github.com/dotnet/winforms/pull/8573#issuecomment-1542600949
//
// NOTE: this logic may break in future versions of Windows since it is not documented.
if (langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD1 ||
langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD2 ||
langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD3 ||
langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD4)
if (langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD1
|| langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD2
|| langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD3
|| langId == PInvoke.LOCALE_TRANSIENT_KEYBOARD4)
{
using RegistryKey? key = Registry.CurrentUser.OpenSubKey(UserProfileRegistryPath);
if (key is not null && key.GetValue("Languages") is string[] languages)
Expand Down

0 comments on commit 96ad347

Please sign in to comment.