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
21
21
{
22
22
#region Blur Handling
23
23
24
+ public static bool IsWindows11 ( )
25
+ {
26
+ return Environment . OSVersion . Version . Major >= 10 && Environment . OSVersion . Version . Build >= 22000 ;
27
+ }
24
28
public static bool IsBackdropSupported ( )
25
29
{
26
30
// Mica and Acrylic only supported Windows 11 22000+
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using System . Linq ;
3
4
using System . Windows . Forms ;
4
5
using CommunityToolkit . Mvvm . Input ;
5
6
using Flow . Launcher . Core ;
@@ -205,7 +206,18 @@ public bool LegacyKoreanIMEEnabled
205
206
}
206
207
}
207
208
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
+ }
209
221
210
222
public bool KoreanIMERegistryValueIsZero
211
223
{
You can’t perform that action at this time.
0 commit comments