From 928135044422ba6748561b18905660f2d4455a1b Mon Sep 17 00:00:00 2001 From: Mike Puskar Date: Sat, 1 Jan 2022 10:05:43 -0600 Subject: [PATCH 1/2] minor change to GetAllSettings --- IPT.Common/User/Configuration.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/IPT.Common/User/Configuration.cs b/IPT.Common/User/Configuration.cs index a904b03..1d64814 100644 --- a/IPT.Common/User/Configuration.cs +++ b/IPT.Common/User/Configuration.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Reflection; using IPT.Common.API; using IPT.Common.User.Inputs; @@ -123,16 +122,11 @@ protected void SaveINI(string filename) private List GetAllSettings() { var settings = new List(); - foreach (var field in this.GetType().GetFields(BindingFlags.Public | BindingFlags.Instance).Where( - x => x.FieldType.BaseType == typeof(Setting))) + foreach (var field in this.GetType().GetFields(BindingFlags.Public | BindingFlags.Instance)) { - try + if (field.GetValue(this) is Setting setting) { - settings.Add((Setting)field.GetValue(this)); - } - catch (Exception ex) - { - Logging.Error($"could not retrieve setting: {field.Name}", ex); + settings.Add(setting); } } From 2f4332826d3763a2ca4191e81bf60bffcc2a183b Mon Sep 17 00:00:00 2001 From: Mike Puskar Date: Sat, 1 Jan 2022 10:07:30 -0600 Subject: [PATCH 2/2] updated version to 1.1.1 --- IPT.Common/Properties/AssemblyInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPT.Common/Properties/AssemblyInfo.cs b/IPT.Common/Properties/AssemblyInfo.cs index f43fd01..0185970 100644 --- a/IPT.Common/Properties/AssemblyInfo.cs +++ b/IPT.Common/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.1.0")] +[assembly: AssemblyFileVersion("1.1.1.0")]