From 2fb3cd5207fde2988c02b77ca2eb2e3d1e223698 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 31 May 2017 21:27:46 -0700 Subject: [PATCH] Fix template loading behavior Closes #1181 move preview sprite fetch to the absolute end --- 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 27855990b..17c40d90d 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -228,11 +228,11 @@ public void populateFields(PKM pk, bool focus = true) Label_HatchCounter.Visible = CHK_IsEgg.Checked && pkm.Format > 1; Label_Friendship.Visible = !CHK_IsEgg.Checked && pkm.Format > 1; - // Set the Preview Box - UpdatePreviewSprite(this, null); setMarkings(); updateLegality(); lastData = preparePKM()?.Data; + // Refresh the Preview Box + UpdatePreviewSprite?.Invoke(this, null); } public void updateLegality(LegalityAnalysis la = null, bool skipMoveRepop = false) {