diff --git a/QuickLook/App.xaml.cs b/QuickLook/App.xaml.cs index b31a9ee..d46ea04 100644 --- a/QuickLook/App.xaml.cs +++ b/QuickLook/App.xaml.cs @@ -38,7 +38,8 @@ namespace QuickLook public static readonly string AppPath = Path.GetDirectoryName(AppFullPath); public static readonly bool Is64Bit = Environment.Is64BitProcess; public static readonly bool IsUWP = ProcessHelper.IsRunningAsUWP(); - public static readonly bool IsWin10 = Environment.OSVersion.Version >= new Version(10, 0); + public static readonly bool IsWin11 = Environment.OSVersion.Version >= new Version(10, 0, 21996); + public static readonly bool IsWin10 = !IsWin11 && Environment.OSVersion.Version >= new Version(10, 0); public static readonly bool IsGPUInBlacklist = SystemHelper.IsGPUInBlacklist(); public static readonly bool IsPortable = SettingHelper.IsPortableVersion(); diff --git a/QuickLook/ViewerWindow.xaml.cs b/QuickLook/ViewerWindow.xaml.cs index da30b2a..9671616 100644 --- a/QuickLook/ViewerWindow.xaml.cs +++ b/QuickLook/ViewerWindow.xaml.cs @@ -105,6 +105,7 @@ namespace QuickLook if (SettingHelper.Get("UseTransparency", true) && SystemParameters.IsGlassEnabled && App.IsWin10 + && !App.IsWin11 && !App.IsGPUInBlacklist ) WindowHelper.EnableBlur(this);