diff --git a/pkNX.WinForms/Controls/EvolutionRow.Designer.cs b/pkNX.WinForms/Controls/EvolutionRow.Designer.cs index faeacb0c..c8f3c4db 100644 --- a/pkNX.WinForms/Controls/EvolutionRow.Designer.cs +++ b/pkNX.WinForms/Controls/EvolutionRow.Designer.cs @@ -100,6 +100,7 @@ private void InitializeComponent() this.CB_Arg.Name = "CB_Arg"; this.CB_Arg.Size = new System.Drawing.Size(82, 21); this.CB_Arg.TabIndex = 69; + this.CB_Arg.Visible = false; // // CB_Species // diff --git a/pkNX.WinForms/Controls/EvolutionRow.cs b/pkNX.WinForms/Controls/EvolutionRow.cs index fe27f42d..d0532078 100644 --- a/pkNX.WinForms/Controls/EvolutionRow.cs +++ b/pkNX.WinForms/Controls/EvolutionRow.cs @@ -23,14 +23,12 @@ public EvolutionRow() { var index = (EvolutionType)CB_Method.SelectedIndex; var type = index.GetArgType(); + CB_Arg.Visible = type >= EvolutionTypeArgumentType.Items; if (type == oldMethod) return; if (type < EvolutionTypeArgumentType.Items) - { - CB_Arg.Visible = false; return; - } CB_Arg.Visible = true; oldMethod = type;