From 295b8fe0a60466bd0a392559c5702955fb72b749 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:05:41 -0400 Subject: [PATCH] Fix UI not populating fields on edit, uncheck Force Rename by default --- RecodeItGUI/GUI/Main.Designer.cs | 2 -- RecodeItGUI/GUI/Main.cs | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/RecodeItGUI/GUI/Main.Designer.cs b/RecodeItGUI/GUI/Main.Designer.cs index b71172d..9df5544 100644 --- a/RecodeItGUI/GUI/Main.Designer.cs +++ b/RecodeItGUI/GUI/Main.Designer.cs @@ -285,8 +285,6 @@ partial class ReCodeItForm // RemapperUseForceRename // RemapperUseForceRename.AutoSize = true; - RemapperUseForceRename.Checked = true; - RemapperUseForceRename.CheckState = CheckState.Checked; RemapperUseForceRename.Location = new Point(577, 190); RemapperUseForceRename.Name = "RemapperUseForceRename"; RemapperUseForceRename.Size = new Size(149, 29); diff --git a/RecodeItGUI/GUI/Main.cs b/RecodeItGUI/GUI/Main.cs index 41be40a..178efa6 100644 --- a/RecodeItGUI/GUI/Main.cs +++ b/RecodeItGUI/GUI/Main.cs @@ -1169,10 +1169,10 @@ public partial class ReCodeItForm : Form NestedTypeParentName.Text = remap.SearchParams.ParentName; ConstructorCountEnabled.Checked = remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount > 0 : false; - MethodCountEnabled.Checked = remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount > 0 : false; - FieldCountEnabled.Checked = remap.SearchParams.FieldCount != null ? remap.SearchParams.FieldCount > 0 : false; - PropertyCountEnabled.Checked = remap.SearchParams.PropertyCount != null ? remap.SearchParams.PropertyCount > 0 : false; - NestedTypeCountEnabled.Checked = remap.SearchParams.NestedTypeCount != null ? remap.SearchParams.NestedTypeCount > 0 : false; + MethodCountEnabled.Checked = remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount >= 0 : false; + FieldCountEnabled.Checked = remap.SearchParams.FieldCount != null ? remap.SearchParams.FieldCount >= 0 : false; + PropertyCountEnabled.Checked = remap.SearchParams.PropertyCount != null ? remap.SearchParams.PropertyCount >= 0 : false; + NestedTypeCountEnabled.Checked = remap.SearchParams.NestedTypeCount != null ? remap.SearchParams.NestedTypeCount >= 0 : false; ConstuctorCountUpDown.Value = (decimal)((remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount : 0)); MethodCountUpDown.Value = (decimal)(remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount : 0);