diff --git a/Fo76ini/Interface/Theming.cs b/Fo76ini/Interface/Theming.cs index a7b518e..8c1025e 100644 --- a/Fo76ini/Interface/Theming.cs +++ b/Fo76ini/Interface/Theming.cs @@ -63,16 +63,23 @@ public static Theme SystemTheme public static ThemeType DetectSystemTheme () { - RegistryKey registry = - Registry.CurrentUser.OpenSubKey( - @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"); - - if (registry == null) - return ThemeType.Light; - else if ((int)registry.GetValue("AppsUseLightTheme") == 1) // SystemUsesLightTheme + try + { + RegistryKey registry = + Registry.CurrentUser.OpenSubKey( + @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"); + + if (registry == null) + return ThemeType.Light; + else if ((int)registry.GetValue("AppsUseLightTheme") == 1) // SystemUsesLightTheme + return ThemeType.Light; + else + return ThemeType.Dark; + } + catch + { return ThemeType.Light; - else - return ThemeType.Dark; + } } #region Theme variables diff --git a/Fo76ini/Shared.cs b/Fo76ini/Shared.cs index f23f843..0c1aca1 100644 --- a/Fo76ini/Shared.cs +++ b/Fo76ini/Shared.cs @@ -10,7 +10,7 @@ namespace Fo76ini /// public class Shared { - public const string VERSION = "1.12.5"; + public const string VERSION = "1.12.5.1"; public static string LatestVersion = null; public static readonly string AppInstallationFolder = Directory.GetParent(Application.ExecutablePath).ToString(); diff --git a/VERSION b/VERSION index e0a6b34..bdf6872 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.5 +1.12.5.1 diff --git a/setup.iss b/setup.iss index b43b72e..c937631 100644 --- a/setup.iss +++ b/setup.iss @@ -6,7 +6,7 @@ #define MyAppURL "https://www.nexusmods.com/fallout76/mods/546" #define MyAppExeName "Fo76ini.exe" -#define ProjectVersion "1.12.5" +#define ProjectVersion "1.12.5.1" #define ProjectGitDir "D:\Workspace\Fallout76-QuickConfiguration" #define AppConfigDir "{localappdata}\Fallout 76 Quick Configuration"