Skip to content

Commit

Permalink
Version 3.11.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskohl committed Apr 5, 2021
1 parent 2e70bec commit 423f7ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CapsLockIndicatorV3/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ private static void Main(string[] args)

#endregion

#if DEBUG
//#if DEBUG
if (SettingsManager.Get<bool>("firstRun"))
#else
if (SettingsManager.Get<bool>("firstRun") && new Version(SettingsManager.Get<string>("versionNo")) >= Assembly.GetExecutingAssembly().GetName().Version)
#endif
//#else
//if (SettingsManager.Get<bool>("firstRun") && new Version(SettingsManager.Get<string>("versionNo")) >= Assembly.GetExecutingAssembly().GetName().Version)
//#endif
{
using (var d = new FirstRunDialog())
{
Expand Down
4 changes: 0 additions & 4 deletions CapsLockIndicatorV3/SettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(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());
Expand Down

0 comments on commit 423f7ef

Please sign in to comment.