From 5615d24c9c0ee0b919182123012befbba2d6b14f Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 16 Jul 2021 08:40:53 -0700 Subject: [PATCH] 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. --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index 3ac9c38df..3a138f091 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -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