Skip to content

Commit

Permalink
Merge pull request #2950 from Wox-launcher/bao
Browse files Browse the repository at this point in the history
fix version detection bug
  • Loading branch information
bao-qian committed May 17, 2020
2 parents f06b7c4 + 0616531 commit 71a761d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Wox.Core/Resource/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ private string GetThemePath(string themeName)

private void AutoReload()
{
if (Environment.OSVersion.Version >= new Version(10, 0)) {
var support = Environment.OSVersion.Version.Major >= new Version(10, 0).Major;
Logger.WoxInfo($"Runtime Version {Environment.OSVersion.Version} {support}");
if (support) {
var uiSettings = new Windows.UI.ViewManagement.UISettings();
uiSettings.ColorValuesChanged +=
(sender, args) => {
Expand Down

0 comments on commit 71a761d

Please sign in to comment.