From 423f7efad5ef510683f45c220951d14a6a334826 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Mon, 5 Apr 2021 22:05:03 +0200 Subject: [PATCH] Version 3.11.1.0 --- CapsLockIndicatorV3/Program.cs | 8 ++++---- CapsLockIndicatorV3/SettingsManager.cs | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CapsLockIndicatorV3/Program.cs b/CapsLockIndicatorV3/Program.cs index 7b7a00d..deb7319 100644 --- a/CapsLockIndicatorV3/Program.cs +++ b/CapsLockIndicatorV3/Program.cs @@ -153,11 +153,11 @@ private static void Main(string[] args) #endregion -#if DEBUG +//#if DEBUG if (SettingsManager.Get("firstRun")) -#else - if (SettingsManager.Get("firstRun") && new Version(SettingsManager.Get("versionNo")) >= Assembly.GetExecutingAssembly().GetName().Version) -#endif +//#else + //if (SettingsManager.Get("firstRun") && new Version(SettingsManager.Get("versionNo")) >= Assembly.GetExecutingAssembly().GetName().Version) +//#endif { using (var d = new FirstRunDialog()) { diff --git a/CapsLockIndicatorV3/SettingsManager.cs b/CapsLockIndicatorV3/SettingsManager.cs index 1683406..755b154 100644 --- a/CapsLockIndicatorV3/SettingsManager.cs +++ b/CapsLockIndicatorV3/SettingsManager.cs @@ -66,16 +66,12 @@ private static void LoadUser() public static object Get(string key) { - if (!Has(key)) - return null; var d = Settings[key]; return Convert.ChangeType(d.Item2, d.Item1); } public static T Get(string key) { - if (!Has(key)) - return default(T); var d = Settings[key]; if (typeof(T).IsEnum) return (T)Enum.Parse(typeof(T), d.Item2.ToString());