More pkm.form visibility/initialize tweaks

Gen7 started up showing a form=-1 marshadow, initialize the combobox with an empty string since we no longer set formlist if it has none
label/combobox visibility should be managed by gen2 flowlayout case below
This commit is contained in:
Kurt 2021-01-01 11:29:20 -08:00
parent e2c1a3045a
commit d66486ac29
2 changed files with 3 additions and 1 deletions

View file

@ -795,6 +795,8 @@
this.CB_Form.DropDownWidth = 85;
this.CB_Form.Enabled = false;
this.CB_Form.FormattingEnabled = true;
this.CB_Form.Items.AddRange(new object[] {
""});
this.CB_Form.Location = new System.Drawing.Point(0, 0);
this.CB_Form.Margin = new System.Windows.Forms.Padding(0);
this.CB_Form.Name = "CB_Form";

View file

@ -1784,7 +1784,7 @@ namespace PKHeX.WinForms.Controls
PB_Origin.Visible = gen >= 6;
FLP_NSparkle.Visible = L_NSparkle.Visible = CHK_NSparkle.Visible = gen == 5;
CB_Form.Visible = Label_Form.Visible = CHK_AsEgg.Visible = GB_EggConditions.Visible = PB_Mark5.Visible = PB_Mark6.Visible = gen >= 4;
CHK_AsEgg.Visible = GB_EggConditions.Visible = PB_Mark5.Visible = PB_Mark6.Visible = gen >= 4;
FLP_ShinyLeaf.Visible = L_ShinyLeaf.Visible = ShinyLeaf.Visible = gen == 4;
DEV_Ability.Enabled = DEV_Ability.Visible = gen > 3 && HaX;