Fix template loading behavior

Closes #1181
move preview sprite fetch to the absolute end
This commit is contained in:
Kurt 2017-05-31 21:27:46 -07:00
parent e522094679
commit 2fb3cd5207

View File

@ -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)
{