File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ public partial class App : Application
38
38
public static readonly string AppPath = Path . GetDirectoryName ( AppFullPath ) ;
39
39
public static readonly bool Is64Bit = Environment . Is64BitProcess ;
40
40
public static readonly bool IsUWP = ProcessHelper . IsRunningAsUWP ( ) ;
41
- public static readonly bool IsWin10 = Environment . OSVersion . Version >= new Version ( 10 , 0 ) ;
41
+ public static readonly bool IsWin11 = Environment . OSVersion . Version >= new Version ( 10 , 0 , 21996 ) ;
42
+ public static readonly bool IsWin10 = ! IsWin11 && Environment . OSVersion . Version >= new Version ( 10 , 0 ) ;
42
43
public static readonly bool IsGPUInBlacklist = SystemHelper . IsGPUInBlacklist ( ) ;
43
44
public static readonly bool IsPortable = SettingHelper . IsPortableVersion ( ) ;
44
45
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public override void OnApplyTemplate()
105
105
if ( SettingHelper . Get ( "UseTransparency" , true )
106
106
&& SystemParameters . IsGlassEnabled
107
107
&& App . IsWin10
108
+ && ! App . IsWin11
108
109
&& ! App . IsGPUInBlacklist
109
110
)
110
111
WindowHelper . EnableBlur ( this ) ;
You can’t perform that action at this time.
0 commit comments