From 863220655ec237fc92db73ebdf197111bf87ac7a Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 6 Sep 2017 17:10:15 -0700 Subject: [PATCH] gen1/2 shiny button fix setting the string to the control causes it to update, use the changingFields to prevent this update from happening until we want to (via UpdateIVs) Closes #1444 --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index 6358afa0d..2ac5219af 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -1593,10 +1593,12 @@ private void UpdateShiny(bool PID) else { pkm.SetShinyIVs(); + changingFields = true; TB_ATKIV.Text = pkm.IV_ATK.ToString(); TB_DEFIV.Text = pkm.IV_DEF.ToString(); TB_SPEIV.Text = pkm.IV_SPE.ToString(); TB_SPAIV.Text = pkm.IV_SPA.ToString(); + changingFields = true; UpdateIVs(null, null); }