mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
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:
parent
6bed33f7f1
commit
5615d24c9c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue