From c9f38fef4577a8d0b713184b3ee5b124696f7da7 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Wed, 20 Jul 2016 00:31:29 +0100 Subject: [PATCH] fixup --- Wox.Core/Resource/Theme.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Wox.Core/Resource/Theme.cs b/Wox.Core/Resource/Theme.cs index 3107b26de6..68df370b1f 100644 --- a/Wox.Core/Resource/Theme.cs +++ b/Wox.Core/Resource/Theme.cs @@ -15,7 +15,6 @@ namespace Wox.Core.Resource public class Theme : Resource { private static List themeDirectories = new List(); - private static Version supportedAccentsVersion = new Version(6, 2); public Settings Settings { get; set; } public Theme() @@ -60,7 +59,7 @@ namespace Wox.Core.Resource // Exception of FindResource can't be cathed if global exception handle is set var isBlur = Application.Current.TryFindResource("ThemeBlurEnabled"); - if (isBlur is bool && Environment.OSVersion.Version >= supportedAccentsVersion) + if (isBlur is bool && Environment.OSVersion.Version >= new Version(6, 2)) { SetBlurForWindow(Application.Current.MainWindow, (bool)isBlur); }