Fix conditional PID->EC copy on UpdateShiny

Should check 3-5, not 1-5, as VC transfers have separate ECs.
Replace the .Visible check; if the control isn't on the current tab page, it might report itself as invisible, and not update the text.
This commit is contained in:
Kurt 2021-07-16 08:40:53 -07:00
parent 6bed33f7f1
commit 5615d24c9c

View file

@ -1497,8 +1497,8 @@ namespace PKHeX.WinForms.Controls
TB_PID.Text = Entity.PID.ToString("X8");
int gen = Entity.Generation;
bool pre3DS = gen is >= 1 and < 6;
if (pre3DS && TB_EC.Visible)
bool pre3DS = gen is 3 or 4 or 5;
if (pre3DS && Entity.Format >= 6)
TB_EC.Text = TB_PID.Text;
}
else