File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Flow.Launcher.Infrastructure
Flow.Launcher/SettingPages/ViewModels Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ public static class Win32Helper
2121 {
2222 #region Blur Handling
2323
24+ public static bool IsWindows11 ( )
25+ {
26+ return Environment . OSVersion . Version . Major >= 10 && Environment . OSVersion . Version . Build >= 22000 ;
27+ }
2428 public static bool IsBackdropSupported ( )
2529 {
2630 // Mica and Acrylic only supported Windows 11 22000+
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3+ using System . Linq ;
34using System . Windows . Forms ;
45using CommunityToolkit . Mvvm . Input ;
56using Flow . Launcher . Core ;
@@ -205,7 +206,18 @@ public bool LegacyKoreanIMEEnabled
205206 }
206207 }
207208
208- public bool KoreanIMERegistryKeyExists => Win32Helper . IsKoreanIMEExist ( ) ;
209+ public bool KoreanIMERegistryKeyExists
210+ {
211+ get
212+ {
213+ bool registryKeyExists = Win32Helper . IsKoreanIMEExist ( ) ;
214+ bool koreanLanguageInstalled = InputLanguage . InstalledInputLanguages . Cast < InputLanguage > ( ) . Any ( lang => lang . Culture . Name . StartsWith ( "ko" ) ) ;
215+ bool isWindows11 = Win32Helper . IsWindows11 ( ) ;
216+
217+ // Return true if Windows 11 with Korean IME installed, or if the registry key exists
218+ return ( isWindows11 && koreanLanguageInstalled ) || registryKeyExists ;
219+ }
220+ }
209221
210222 public bool KoreanIMERegistryValueIsZero
211223 {
You can’t perform that action at this time.
0 commit comments